aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Cabo <david@calibea.com>2011-10-13 00:15:25 +0200
committerDavid Cabo <david@calibea.com>2011-10-13 00:15:25 +0200
commite13127a8ebc8bf8379d92f778af5a2bb6931d80c (patch)
tree7741c3655fe5e3cbc90dd20a4626ac7acc1bf6b0
parente63e133023f4a1893fcc8d1e8e0f44710b5f01ff (diff)
Don't abort check-recent-requests-sent if invalid exim line found. Fixes #269
-rw-r--r--app/models/exim_log.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/models/exim_log.rb b/app/models/exim_log.rb
index 80535ab41..83f031a92 100644
--- a/app/models/exim_log.rb
+++ b/app/models/exim_log.rb
@@ -108,10 +108,10 @@ class EximLog < ActiveRecord::Base
# be sure we are parsing the exim line right)
envelope_from = " from <" + ir.incoming_email + "> "
if !exim_log.line.include?(envelope_from)
- raise "unexpected parsing of exim line"
+ $stderr.puts("unexpected parsing of exim line: [#{exim_log.line.chomp}]")
+ else
+ found = true
end
-
- found = true
end
end
if !found