Update of /cvsroot/mailman/mailman/Mailman/Handlers
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24338
Modified Files:
Tag: Release_2_1-maint
Cleanse.py
Log Message:
SF patch #1287546 to remove DomainKey (and similar) headers.
Index: Cleanse.py
===================================================================
RCS file: /cvsroot/mailman/mailman/Mailman/Handlers/Cleanse.py,v
retrieving revision 2.5.2.3
retrieving revision 2.5.2.4
diff -u -d -r2.5.2.3 -r2.5.2.4
--- Cleanse.py 27 Aug 2005 01:40:16 -0000 2.5.2.3
+++ Cleanse.py 12 Sep 2005 21:54:59 -0000 2.5.2.4
@@ -1,4 +1,4 @@
-# Copyright (C) 1998-2003 by the Free Software Foundation, Inc.
+# Copyright (C) 1998-2005 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
@@ -47,3 +47,12 @@
del msg['x-confirm-reading-to']
# Pegasus mail uses this one... sigh
del msg['x-pmrqc']
+ # Remove any "DomainKeys" (or similar) header lines. The values contained
+ # in these header lines are intended to be used by the recipient to detect
+ # forgery or tampering in transit, and the modifications made by Mailman
+ # to the headers and body of the message will cause these keys to appear
+ # invalid. Removing them will at least avoid this misleading result, and
+ # it will also give the MTA the opportunity to regenerate valid keys
+ # originating at the Mailman server for the outgoing message.
+ del msg['domainkey-signature']
+ del msg['dkim-signature']
_______________________________________________
Mailman-checkins mailing list
[email protected]
Unsubscribe:
http://mail.python.org/mailman/options/mailman-checkins/archive%40jab.org