From 7ce808b9e5a9099d10d32c32104cf329d8003584 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 19 Feb 2007 21:36:45 +0000 Subject: 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 --- split-mailman-mails-and-discard-and-save | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'split-mailman-mails-and-discard-and-save') 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 -- cgit v1.2.3