summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorklm1998-10-17 20:27:37 +0000
committerklm1998-10-17 20:27:37 +0000
commitf017eec447a4e8408e816fd137b68cce741df3b0 (patch)
tree0ab398545128b3364dc355f2d8c2bdc9caa903f2
parent3570d803a4997273c542c3658a907a6a3a595387 (diff)
downloadmailman-f017eec447a4e8408e816fd137b68cce741df3b0.tar.gz
mailman-f017eec447a4e8408e816fd137b68cce741df3b0.tar.zst
mailman-f017eec447a4e8408e816fd137b68cce741df3b0.zip
main(): When the list is an umbrella list for other lists, the
recipients for password notices are the administrators of the member addresses - this way, the password will not be advertised to the sublist membership!
-rwxr-xr-xcron/mailpasswds8
1 files changed, 5 insertions, 3 deletions
diff --git a/cron/mailpasswds b/cron/mailpasswds
index 1c3d65290..215ed45c4 100755
--- a/cron/mailpasswds
+++ b/cron/mailpasswds
@@ -88,7 +88,7 @@ def main(args):
for name in Utils.list_names():
list = MailList.MailList(name, lock = 0)
list_name = list.real_name
- reminders_to_admins = list.reminders_to_admins
+ umbrella_list = list.umbrella_list
if not list.send_reminders:
continue
for user, password in list.passwords.items():
@@ -98,8 +98,10 @@ def main(args):
else:
print "%s in %s" % (user, list.real_name)
url = list.GetAbsoluteOptionsURL(user)
- if reminders_to_admins:
- recipient = "%s-admin@%s" % tuple(string.split(user, '@'))
+ if umbrella_list:
+ acct, host = tuple(string.split(user, '@'))
+ recipient = ("%s%s@%s" %
+ (acct, list.umbrella_member_suffix, host))
else:
recipient = user
if users.has_key(recipient):