summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Palfrader <peter@palfrader.org>2007-02-19 11:51:00 +0000
committerweasel <weasel@bc3d92e2-beff-0310-a7cd-cc87d7ac0ede>2007-02-19 11:51:00 +0000
commit1ef0c1c50e48d4a33c521f942abdd7ae943f1033 (patch)
tree7c93533a5a795f583767fe465c2de781dd5da2a6
parent0d22774a9ed34bb92a84ef091a8db9c7703edfc7 (diff)
More headers
git-svn-id: svn+ssh://asteria.noreply.org/svn/weaselutils/trunk@257 bc3d92e2-beff-0310-a7cd-cc87d7ac0ede
-rwxr-xr-xsplit-mailman-mails-and-discard-and-save5
1 files changed, 5 insertions, 0 deletions
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}"