diff options
| author | tkikuchi | 2005-12-24 01:49:03 +0000 |
|---|---|---|
| committer | tkikuchi | 2005-12-24 01:49:03 +0000 |
| commit | 4fb9e9e4253a86560838833c3784cd451a6a94b9 (patch) | |
| tree | 1af6126b78bd6402355f470bc08787d574ed441b /Mailman/Handlers/ToArchive.py | |
| parent | 61e28f4ff6b07109c556f4107b14eb18387a5829 (diff) | |
| download | mailman-4fb9e9e4253a86560838833c3784cd451a6a94b9.tar.gz mailman-4fb9e9e4253a86560838833c3784cd451a6a94b9.tar.zst mailman-4fb9e9e4253a86560838833c3784cd451a6a94b9.zip | |
Diffstat (limited to 'Mailman/Handlers/ToArchive.py')
| -rw-r--r-- | Mailman/Handlers/ToArchive.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/Mailman/Handlers/ToArchive.py b/Mailman/Handlers/ToArchive.py index cdee793fa..59bf680f4 100644 --- a/Mailman/Handlers/ToArchive.py +++ b/Mailman/Handlers/ToArchive.py @@ -19,7 +19,10 @@ import time from cStringIO import StringIO +from email import message_from_string + from Mailman import mm_cfg +from Mailman import Message from Mailman.Queue.sbcache import get_switchboard @@ -36,4 +39,10 @@ def process(mlist, msg, msgdata): # Send the message to the archiver queue archq = get_switchboard(mm_cfg.ARCHQUEUE_DIR) # Send the message to the queue - archq.enqueue(msg, msgdata) + if msg.get('x-mailman-scrubbed'): + # Clean Scrubber-munged message. + archmsg = message_from_string(msg.as_string(), Message.Message) + del archmsg['x-mailman-scrubbed'] + archq.enqueue(archmsg, msgdata) + else: + archq.enqueue(msg, msgdata) |
