diff options
| author | bwarsaw | 2000-10-05 15:54:53 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-10-05 15:54:53 +0000 |
| commit | e033942afd031a5288e71781be52624c57b9c93a (patch) | |
| tree | a1aafe5008dd41a8b7f80e3bacaadafbc20f7548 /Mailman/Handlers/ToArchive.py | |
| parent | 0031fe64dcf0b5154c6900fd640de2b9ab01082c (diff) | |
| download | mailman-e033942afd031a5288e71781be52624c57b9c93a.tar.gz mailman-e033942afd031a5288e71781be52624c57b9c93a.tar.zst mailman-e033942afd031a5288e71781be52624c57b9c93a.zip | |
Diffstat (limited to 'Mailman/Handlers/ToArchive.py')
| -rw-r--r-- | Mailman/Handlers/ToArchive.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Mailman/Handlers/ToArchive.py b/Mailman/Handlers/ToArchive.py index f59420a7b..7f92a0c59 100644 --- a/Mailman/Handlers/ToArchive.py +++ b/Mailman/Handlers/ToArchive.py @@ -25,8 +25,10 @@ def process(mlist, msg, msgdata): # short circuits if msgdata.get('isdigest') or not mlist.archive: return - archivep = msg.getheader('x-archive') - if archivep and string.lower(archivep) == 'no': + # 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': return # # TBD: This is a kludge around the archiver to properly support |
