diff options
| author | Barry Warsaw | 2008-01-24 05:18:02 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2008-01-24 05:18:02 -0500 |
| commit | 36ebacf60b8fe78e20b9c18f6c08d73271922fc4 (patch) | |
| tree | ad8f58134915af75a1dfff73fd801904750173a2 /Mailman/Handlers/CleanseDKIM.py | |
| parent | a76cbbcac84319245a0afb4a4dee32d4d4c79622 (diff) | |
| download | mailman-36ebacf60b8fe78e20b9c18f6c08d73271922fc4.tar.gz mailman-36ebacf60b8fe78e20b9c18f6c08d73271922fc4.tar.zst mailman-36ebacf60b8fe78e20b9c18f6c08d73271922fc4.zip | |
Diffstat (limited to 'Mailman/Handlers/CleanseDKIM.py')
| -rw-r--r-- | Mailman/Handlers/CleanseDKIM.py | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/Mailman/Handlers/CleanseDKIM.py b/Mailman/Handlers/CleanseDKIM.py deleted file mode 100644 index 9dee4fcb0..000000000 --- a/Mailman/Handlers/CleanseDKIM.py +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright (C) 2006-2007 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 -# as published by the Free Software Foundation; either version 2 -# of the License, or (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, -# USA. - -"""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. -""" - -from Mailman.configuration import config - - - -def process(mlist, msg, msgdata): - if config.REMOVE_DKIM_HEADERS: - del msg['domainkey-signature'] - del msg['dkim-signature'] - del msg['authentication-results'] |
