------------------------------------------------------------ revno: 1217 committer: Mark Sapiro <msap...@value.net> branch nick: 2.2 timestamp: Tue 2012-03-27 15:00:04 -0700 message: Added an Auto-Submitted: header to invitations and (un)subscription confirmation requests to reduce the possibility of an autoresponder confirming the request. (LP: #265831) modified: Mailman/MailList.py NEWS
-- lp:mailman/2.2 https://code.launchpad.net/~mailman-coders/mailman/2.2 Your team Mailman Checkins is subscribed to branch lp:mailman/2.2. To unsubscribe from this branch go to https://code.launchpad.net/~mailman-coders/mailman/2.2/+edit-subscription
=== modified file 'Mailman/MailList.py' --- Mailman/MailList.py 2011-11-13 21:36:56 +0000 +++ Mailman/MailList.py 2012-03-27 22:00:04 +0000 @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2011 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2012 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -823,6 +823,8 @@ subj = self.GetConfirmJoinSubject(listname, cookie) del msg['subject'] msg['Subject'] = subj + del msg['auto-submitted'] + msg['Auto-Submitted'] = 'auto-generated' msg.send(self) def AddMember(self, userdesc, remote=None): @@ -924,6 +926,14 @@ del msg['subject'] msg['Subject'] = self.GetConfirmJoinSubject(realname, cookie) msg['Reply-To'] = self.GetRequestEmail(cookie) + # Is this confirmation a reply to an email subscribe from this + # address? + if remote.lower().endswith(email.lower()): + autosub = 'auto-replied' + else: + autosub = 'auto-generated' + del msg['auto-submitted'] + msg['Auto-Submitted'] = autosub msg.send(self) who = formataddr((name, email)) syslog('subscribe', '%s: pending %s %s', @@ -1381,6 +1391,8 @@ del msg['subject'] msg['Subject'] = self.GetConfirmLeaveSubject(realname, cookie) msg['Reply-To'] = self.GetRequestEmail(cookie) + del msg['auto-submitted'] + msg['Auto-Submitted'] = 'auto-generated' msg.send(self) === modified file 'NEWS' --- NEWS 2012-03-27 17:47:14 +0000 +++ NEWS 2012-03-27 22:00:04 +0000 @@ -142,6 +142,10 @@ Bug Fixes and other patches + - Added an Auto-Submitted: header to invitations and (un)subscription + confirmation requests to reduce the possibility of an autoresponder + confirming the request. (LP: #265831) + - Added javascript to the private.html and admlogin.html templates to focus the cursor on the entry field. (LP: #266054)
_______________________________________________ Mailman-checkins mailing list Mailman-checkins@python.org Unsubscribe: http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org