------------------------------------------------------------
revno: 1349
committer: Mark Sapiro <msap...@value.net>
branch nick: 2.1
timestamp: Tue 2012-03-27 14:57:20 -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.1
https://code.launchpad.net/~mailman-coders/mailman/2.1

Your team Mailman Checkins is subscribed to branch lp:mailman/2.1.
To unsubscribe from this branch go to 
https://code.launchpad.net/~mailman-coders/mailman/2.1/+edit-subscription
=== modified file 'Mailman/MailList.py'
--- Mailman/MailList.py	2011-11-13 21:32:08 +0000
+++ Mailman/MailList.py	2012-03-27 21:57:20 +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
@@ -819,6 +819,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):
@@ -920,6 +922,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',
@@ -1341,6 +1351,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:49:26 +0000
+++ NEWS	2012-03-27 21:57:20 +0000
@@ -98,6 +98,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

Reply via email to