summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/ToArchive.py
diff options
context:
space:
mode:
authorbwarsaw2002-02-26 06:30:04 +0000
committerbwarsaw2002-02-26 06:30:04 +0000
commitd7e49b027c2b2ae3231c7f0b124426b86cb63b2e (patch)
tree7c05f3167beed5a83d6d64db708211767c21a5de /Mailman/Handlers/ToArchive.py
parent712b7de86af8196edf5d3857868dd2f1bd00e2af (diff)
downloadmailman-d7e49b027c2b2ae3231c7f0b124426b86cb63b2e.tar.gz
mailman-d7e49b027c2b2ae3231c7f0b124426b86cb63b2e.tar.zst
mailman-d7e49b027c2b2ae3231c7f0b124426b86cb63b2e.zip
Diffstat (limited to 'Mailman/Handlers/ToArchive.py')
-rw-r--r--Mailman/Handlers/ToArchive.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Mailman/Handlers/ToArchive.py b/Mailman/Handlers/ToArchive.py
index f85877a84..dc19f9639 100644
--- a/Mailman/Handlers/ToArchive.py
+++ b/Mailman/Handlers/ToArchive.py
@@ -1,4 +1,4 @@
-# Copyright (C) 1998,1999,2000,2001 by the Free Software Foundation, Inc.
+# Copyright (C) 1998,1999,2000,2001,2002 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
@@ -28,10 +28,10 @@ def process(mlist, msg, msgdata):
# short circuits
if msgdata.get('isdigest') or not mlist.archive:
return
- # Common practice seems to favor "X-No-Archive: yes". I'm keeping
- # "X-Archive: no" for backwards compatibility.
- if msg.get('x-no-archive', '').lower() == 'yes' or \
- msg.get('x-archive', '').lower() == 'no':
+ # Common practice seems to favor "X-No-Archive: yes". No other value for
+ # this header seems to make sense, so we'll just test for it's presence.
+ # I'm keeping "X-Archive: no" for backwards compatibility.
+ if msg.has_key('x-no-archive') or msg.get('x-archive', '').lower() == 'no':
return
# Send the message to the archiver queue
archq = get_switchboard(mm_cfg.ARCHQUEUE_DIR)