summaryrefslogtreecommitdiff
path: root/split-mailman-mails-and-discard-and-save
diff options
context:
space:
mode:
Diffstat (limited to 'split-mailman-mails-and-discard-and-save')
-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}"