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-save10
1 files changed, 9 insertions, 1 deletions
diff --git a/split-mailman-mails-and-discard-and-save b/split-mailman-mails-and-discard-and-save
index c40627d..73413a1 100755
--- a/split-mailman-mails-and-discard-and-save
+++ b/split-mailman-mails-and-discard-and-save
@@ -330,11 +330,19 @@ Dir[MAILIN+"/new/*"].each do |filename|
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}"
+ "Moved to #{newname}\n" +
+ "\n" +
+ "complete backtrace:\n"+
+ e.backtrace.join("\n")
store_in_maildir(OUTBOX, mail_error)
rescue Exception => e2
STDERR.puts "Error when processing #{filename}: #{e}"
STDERR.puts "During error handling we encountered a new problem: #{e2}"
+ STDERR.puts "backtrace of e:"+
+ STDERR.puts e.backtrace.join("\n")
+ STDERR.puts
+ STDERR.puts "backtrace of e2:"+
+ STDERR.puts e2.backtrace.join("\n")
end
end
end