Skip to content

Commit

Permalink
Update mailman_server
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren committed May 9, 2019
1 parent 59a0773 commit 2bc7b49
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/mailman_server
Expand Up @@ -24,10 +24,12 @@ Mailman::Application.run do
# route for mail having node with id in their subject will only be accepted for processing
default do
begin
retries ||= 0
Comment.receive_mail(message)
rescue Exception => e
Mailman.logger.error "Exception occurred while receiving message:\n#{message}"
Mailman.logger.error [e, *e.backtrace].join("\n")
retry if (retries += 1) < 3
end
end

Expand Down

0 comments on commit 2bc7b49

Please sign in to comment.