Hi, We have a setup where we need the anonymizing feature "Hide the sender of a message ..." to actually anonymize the messages going through the list. Both in the archive and in the mails it sent out, it left headers that (normally) make it pretty easy to track the sender. This patch against Mailman/Handlers/Cleanse.py from version 2.0.11 should remove most of those. It strips the recieved-headers, generates a new Message-ID and sets the envelope-from address to the list admin.
Index: Mailman/Handlers/Cleanse.py =================================================================== RCS file: /linpro/local/CVSROOT/mailman-limacute/Mailman/Handlers/Cleanse.py,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- Mailman/Handlers/Cleanse.py 15 Feb 2002 16:28:03 -0000 1.1 +++ Mailman/Handlers/Cleanse.py 18 Jun 2002 20:33:34 -0000 1.2 @@ -16,6 +16,7 @@ """Cleanse certain headers from all messages.""" +from Mailman import Utils def process(mlist, msg, msgdata): # Always remove this header from any outgoing messages. Be sure to do @@ -27,8 +28,12 @@ if mlist.anonymous_list: del msg['reply-to'] del msg['sender'] + del msg['received'] + del msg['message-id'] + msg.unixfrom = "From " + mlist.GetAdminEmail() + "\n" msg['From'] = mlist.GetAdminEmail() msg['Reply-To'] = mlist.GetListEmail() + msg['Message-ID'] = Utils.make_msgid(idstring='Mailman') # # Some headers can be used to fish for membership del msg['return-receipt-to']
Regards, -- Kristoffer.
_______________________________________________ Mailman-Developers mailing list [EMAIL PROTECTED] http://mail.python.org/mailman-21/listinfo/mailman-developers