summaryrefslogtreecommitdiff
path: root/Mailman/Handlers/ToArchive.py
diff options
context:
space:
mode:
authorBarry Warsaw2007-07-11 07:06:34 -0400
committerBarry Warsaw2007-07-11 07:06:34 -0400
commitca6bbd0ef9dfa503f2cbbcc65cf25e695c0b78ec (patch)
tree7ef238d5acf142ea8237673526d3e51555ecb353 /Mailman/Handlers/ToArchive.py
parentde429f33191b84bc261535d8deba54399fb1bd4a (diff)
downloadmailman-ca6bbd0ef9dfa503f2cbbcc65cf25e695c0b78ec.tar.gz
mailman-ca6bbd0ef9dfa503f2cbbcc65cf25e695c0b78ec.tar.zst
mailman-ca6bbd0ef9dfa503f2cbbcc65cf25e695c0b78ec.zip
Diffstat (limited to 'Mailman/Handlers/ToArchive.py')
-rw-r--r--Mailman/Handlers/ToArchive.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/Mailman/Handlers/ToArchive.py b/Mailman/Handlers/ToArchive.py
index df6492b47..6c4397daa 100644
--- a/Mailman/Handlers/ToArchive.py
+++ b/Mailman/Handlers/ToArchive.py
@@ -17,9 +17,6 @@
"""Add the message to the archives."""
-import time
-from cStringIO import StringIO
-
from Mailman.Queue.sbcache import get_switchboard
from Mailman.configuration import config
@@ -32,7 +29,7 @@ def process(mlist, msg, msgdata):
# 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':
+ if 'x-no-archive' in msg or msg.get('x-archive', '').lower() == 'no':
return
# Send the message to the archiver queue
archq = get_switchboard(config.ARCHQUEUE_DIR)