diff options
| author | bwarsaw | 2000-02-03 23:57:10 +0000 |
|---|---|---|
| committer | bwarsaw | 2000-02-03 23:57:10 +0000 |
| commit | 539e461072b080d72eb45b9bb89bd36e3626fe33 (patch) | |
| tree | 2c17449b8ca90f8c75ed941a96d9024d04a06cbe /Mailman/Handlers/ToArchive.py | |
| parent | e843dde37e5ab808235152d8ee187a23ab18f0b7 (diff) | |
| download | mailman-539e461072b080d72eb45b9bb89bd36e3626fe33.tar.gz mailman-539e461072b080d72eb45b9bb89bd36e3626fe33.tar.zst mailman-539e461072b080d72eb45b9bb89bd36e3626fe33.zip | |
Diffstat (limited to 'Mailman/Handlers/ToArchive.py')
| -rw-r--r-- | Mailman/Handlers/ToArchive.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Mailman/Handlers/ToArchive.py b/Mailman/Handlers/ToArchive.py index 321258a1e..e162dad97 100644 --- a/Mailman/Handlers/ToArchive.py +++ b/Mailman/Handlers/ToArchive.py @@ -16,6 +16,7 @@ """Add the message to the archives.""" +import string from Mailman import mm_cfg @@ -24,5 +25,8 @@ def process(mlist, msg): # short circuits if getattr(msg, 'isdigest', 0): return + archivep = msg.getheader('x-archive') + if archivep and string.lower(archivep) == 'no': + return # TBD: this needs to be converted to the new pipeline machinery mlist.ArchiveMail(msg) |
