diff options
| author | bwarsaw | 2000-12-20 21:40:09 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-12-20 21:40:09 +0000 |
| commit | 3281c4603f2741876d0fe6597d6a29b99af73322 (patch) | |
| tree | 14f3ea6509c70a7403323c06d4bda8fa901ae9f3 /Mailman/Handlers/ToArchive.py | |
| parent | e43a9151a311bf5c7f4355dd1cf400c00f8929f5 (diff) | |
| download | mailman-3281c4603f2741876d0fe6597d6a29b99af73322.tar.gz mailman-3281c4603f2741876d0fe6597d6a29b99af73322.tar.zst mailman-3281c4603f2741876d0fe6597d6a29b99af73322.zip | |
Diffstat (limited to 'Mailman/Handlers/ToArchive.py')
| -rw-r--r-- | Mailman/Handlers/ToArchive.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Mailman/Handlers/ToArchive.py b/Mailman/Handlers/ToArchive.py index 05ad920cd..3a6cc772b 100644 --- a/Mailman/Handlers/ToArchive.py +++ b/Mailman/Handlers/ToArchive.py @@ -16,7 +16,6 @@ """Add the message to the archives.""" -import string import time @@ -27,8 +26,8 @@ def process(mlist, msg, msgdata): return # Common practice seems to favor "X-No-Archive: yes". I'm keeping # "X-Archive: no" for backwards compatibility. - if string.lower(msg.getheader('x-no-archive', '')) == 'yes' or \ - string.lower(msg.getheader('x-archive', '')) == 'no': + if msg.getheader('x-no-archive', '').lower() == 'yes' or \ + msg.getheader('x-archive', '').lower() == 'no': return # # TBD: This is a kludge around the archiver to properly support |
