summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2006-06-17 13:37:49 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2006-06-17 13:37:49 +0000
commitf7613e8087244c472b79585cca0b9124dda06e67 (patch)
treec8e264de34e55c3410398d26eb262dc1b658f10c
parentb8529f2adeffee6620080cc6b71697e231c3d306 (diff)
Rewrite Delivered-To to X-OLD-Delivered-To to avoid mail-loop warnings, 4
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@139 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-xsplit-mailman-mails-and-discard-and-save2
1 files changed, 1 insertions, 1 deletions
diff --git a/split-mailman-mails-and-discard-and-save b/split-mailman-mails-and-discard-and-save
index c51d7b6..c7eb2c1 100755
--- a/split-mailman-mails-and-discard-and-save
+++ b/split-mailman-mails-and-discard-and-save
@@ -241,7 +241,7 @@ def process_mail(filename)
m = message.to_s.split(/\n/)
new_m = []
while m.size > 0 and (line = m.shift) != ""
- m << line.gsub(/^Delivered-To:/, 'X-OLD-Delivered-To:')
+ new_m << line.gsub(/^Delivered-To:/, 'X-OLD-Delivered-To:')
end
new_m.concat m
store_in_maildir(OUTBOX_HUMANS, m.join("\n"))