Update of /cvsroot/mailman/mailman/Mailman/Commands
In directory sc8-pr-cvs1:/tmp/cvs-serv13396

Modified Files:
        cmd_confirm.py 
Log Message:
process(): Catch HostileSubscriptionError and return an error message.

Closes SF bug # 703941 by Stuart Bishop, who also suggested the basic fix.


Index: cmd_confirm.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Commands/cmd_confirm.py,v
retrieving revision 2.5
retrieving revision 2.6
diff -u -d -r2.5 -r2.6
--- cmd_confirm.py      10 Mar 2003 16:30:41 -0000      2.5
+++ cmd_confirm.py      16 Mar 2003 07:07:57 -0000      2.6
@@ -63,6 +63,10 @@
         res.results.append(_("""\
 You are not current a member.  Have you already unsubscribed or changed
 your email address?"""))
+    except Errors.HostileSubscriptionError:
+        res.results.append(_("""\
+You were not invited to this mailing list.  The invitation has been discarded,
+and both list administrators have been alerted."""))
     else:
         if ((results[0] == Pending.SUBSCRIPTION and mlist.send_welcome_msg)
             or



_______________________________________________
Mailman-checkins mailing list
[EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-checkins

Reply via email to