summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2007-02-19 21:36:45 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2007-02-19 21:36:45 +0000
commit7ce808b9e5a9099d10d32c32104cf329d8003584 (patch)
treeee262b14628088030963e124cdc99634b7275932
parentadab918d58a762971d3c742f4fe0529cbd31ac35 (diff)
new_m is an array, not a mail
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@260 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-xsplit-mailman-mails-and-discard-and-save8
1 files changed, 5 insertions, 3 deletions
diff --git a/split-mailman-mails-and-discard-and-save b/split-mailman-mails-and-discard-and-save
index 0438ce9..ddb2b11 100755
--- a/split-mailman-mails-and-discard-and-save
+++ b/split-mailman-mails-and-discard-and-save
@@ -304,9 +304,11 @@ def process_mail(filename)
new_m << line.gsub(/^Delivered-To:/, 'X-OLD-Delivered-To:')
end
new_m.concat m
- new_m.header['X-Listbot-Domain'] = DOMAIN
- new_m.header['X-Listbot-Type'] = 'Moderator-Request'
- new_m.header['X-List-Administrivia'] = 'yes'
+ STDERR.puts new_m[0]
+ STDERR.puts new_m[1]
+ new_m.unshift "X-Listbot-Domain: #{DOMAIN}"
+ new_m.unshift 'X-Listbot-Type: Moderator-Request'
+ new_m.unshift 'X-List-Administrivia: yes'
store_in_maildir(OUTBOX_HUMANS, new_m.join("\n"))
end
else