summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwouters2001-07-19 17:00:12 +0000
committertwouters2001-07-19 17:00:12 +0000
commit135c9a97121e66b67987b0efe91e1c140cffc183 (patch)
tree8b0c24b0f3d6c23bcb6958165ae1202b7c325e8a
parent27a5cfe0579dee1c2ea011c144d2df20381dae42 (diff)
downloadmailman-135c9a97121e66b67987b0efe91e1c140cffc183.tar.gz
mailman-135c9a97121e66b67987b0efe91e1c140cffc183.tar.zst
mailman-135c9a97121e66b67987b0efe91e1c140cffc183.zip
AddMember(): ApprovedAddMember doesn't take a fullname argument, don't try
to send it. Thanks to the beauty of optional arguments, this changed the fullname into the password, and used the password as the 'digest' flag, causing all new members to be considered digest members ;P ProcessConfirmation(): Adjust to the fact that the subscription info now carries the fullname too. Also change the error message so the printf operator doesn't complain about 'not all arguments converted' when 'data' is a sequence (which it is guaranteed to be.)
-rw-r--r--Mailman/MailList.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index 965f99b77..53e88fb07 100644
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -570,7 +570,7 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
if self.subscribe_policy == 0:
# No confirmation or approval is necessary
- self.ApprovedAddMember(emailaddr, fullname, password, digest, lang)
+ self.ApprovedAddMember(emailaddr, password, digest, lang)
elif self.subscribe_policy == 1 or self.subscribe_policy == 3:
# User confirmation required
cookie = Pending.new(Pending.SUBSCRIPTION,
@@ -851,14 +851,14 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
op = data[0]
data = data[1:]
except ValueError:
- raise Errors.MMBadConfirmation, 'op-less data %s' % data
+ raise Errors.MMBadConfirmation, 'op-less data %s' % (data,)
if op == Pending.SUBSCRIPTION:
try:
- addr, password, digest, lang = data
+ addr, fullname, password, digest, lang = data
except ValueError:
- raise Errors.MMBadConfirmation, 'bad subscr data %s' % data
+ raise Errors.MMBadConfirmation, 'bad subscr data %s' % (data,)
if self.subscribe_policy == 3: # confirm + approve
- self.HoldSubscription(addr, password, digest, lang)
+ self.HoldSubscription(addr, fullname, password, digest, lang)
name = self.real_name
raise Errors.MMNeedApproval, _(
'subscriptions to %(name)s require administrator approval')