summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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