From 1ef0c1c50e48d4a33c521f942abdd7ae943f1033 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 19 Feb 2007 11:51:00 +0000 Subject: More headers git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@257 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede --- split-mailman-mails-and-discard-and-save | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/split-mailman-mails-and-discard-and-save b/split-mailman-mails-and-discard-and-save index 181dd1c..c40627d 100755 --- a/split-mailman-mails-and-discard-and-save +++ b/split-mailman-mails-and-discard-and-save @@ -103,6 +103,7 @@ def handle_mailman_queued_mail(cookie, request_address, password) mail_request.header['To'] = request_address mail_request.header['X-Listbot-Domain'] = DOMAIN mail_request.header['X-Listbot-Type'] = 'Mailman-Request' + mail_request.header['X-List-Administrivia'] = 'yes' mail_request.header['Subject'] = "Re: confirm #{cookie}" mail_request.header['Approved'] = password if password mail_request.body = '' @@ -118,6 +119,7 @@ def approve(cookie, request_address) mail_error.header['To'] = ERRORSTO mail_error.header['X-Listbot-Domain'] = DOMAIN mail_error.header['X-Listbot-Type'] = 'Error' + mail_error.header['X-List-Administrivia'] = 'yes' mail_error.header['Subject'] = "approving #{cookie} failed" mail_error.body = 'Sorry, this script does not have the admin/moderator password for'+"\n#{request_address}." store_in_maildir(OUTBOX, mail_error) @@ -226,6 +228,7 @@ def send_ack(action, resent_info) mail.header['Subject'] = "#{action} by #{resent_info['from']}" mail.header['X-Listbot-Domain'] = DOMAIN mail.header['X-Listbot-Type'] = 'Acknowledgement' + mail.header['X-List-Administrivia'] = 'yes' mail.header['In-Reply-To'] = resent_info['origmsgid'] mail.header['References'] = resent_info['origmsgid']+' '+resent_info['msgid'] mail.body = "On #{resent_info['date']} #{resent_info['from']} #{action} this message.\n" + @@ -303,6 +306,7 @@ def process_mail(filename) 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' store_in_maildir(OUTBOX_HUMANS, new_m.join("\n")) end else @@ -323,6 +327,7 @@ Dir[MAILIN+"/new/*"].each do |filename| mail_error.header['To'] = ERRORSTO mail_error.header['X-Listbot-Domain'] = DOMAIN mail_error.header['X-Listbot-Type'] = 'Error' + mail_error.header['X-List-Administrivia'] = 'yes' mail_error.header['Subject'] = "handling of #{filename} failed" mail_error.body = "Processing of #{filename} failed: #{e}\n" + "Moved to #{newname}" -- cgit v1.2.3