diff options
author | Mark Sapiro <mark@msapiro.net> | 2008-02-19 20:26:57 -0800 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2008-02-19 20:26:57 -0800 |
commit | 9ac7210487ec2bce4caca42ee4f8a17303aaabf5 (patch) | |
tree | 4ab34736ad907daf908d86066ef3fb34bcfd199f /Mailman/Commands/cmd_confirm.py | |
parent | 2aee687b29f28ef20703abcbe715d1b1d8e27546 (diff) | |
download | mailman2-9ac7210487ec2bce4caca42ee4f8a17303aaabf5.tar.gz mailman2-9ac7210487ec2bce4caca42ee4f8a17303aaabf5.tar.xz mailman2-9ac7210487ec2bce4caca42ee4f8a17303aaabf5.zip |
cmd_confirm.py - Modified to catch a UnicodeError that may occur under
obscure circumstances when scanning the message body
for "unprocessed" commands.
Moderate.py - Modified to not try to match "@listname" directly against
the sender address.
Diffstat (limited to '')
-rw-r--r-- | Mailman/Commands/cmd_confirm.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Mailman/Commands/cmd_confirm.py b/Mailman/Commands/cmd_confirm.py index efa405e3..9d568df2 100644 --- a/Mailman/Commands/cmd_confirm.py +++ b/Mailman/Commands/cmd_confirm.py @@ -90,8 +90,11 @@ Bad approval password given. Held message is still being held.""")) match = 'confirm ' + cookie unprocessed = [] for line in res.commands: - if line.lstrip() == match: - continue + try: + if line.lstrip() == match: + continue + except UnicodeError: + pass unprocessed.append(line) res.commands = unprocessed # Process just one confirmation string per message |