Defect #12528

Handle temporary failures gracefully in the external mail handler script

Added by Alex Shulgin almost 5 years ago. Updated almost 5 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Email receiving
Target version:2.3.0
Resolution:Fixed Affected version:

Description

Currently, the external mail handler (rdm-mailhandler.rb) would report permanent failure in case the Redmine instance at given --url is down.

This is a problem, since one need to shut down email service around Redmine upgrade or maintenance. Attached patch fixes this by making the script exit with 75 status which is treated as 'temporary failure' by the mail subsystem, effectively re-attempting submission later.

Patch against 2.1-stable.

be1035a6d4f7b15029ef3d6d76c0f7a3a6e52026.diff Magnifier (958 Bytes) Alex Shulgin, 2012-12-06 23:51

Associated revisions

Revision 10954
Added by Jean-Philippe Lang almost 5 years ago

MailHandler: exit with 75 when a SystemCallError is raised (#12528).

History

#1 Updated by Etienne Massip almost 5 years ago

  • Target version set to Candidate for next major release

#2 Updated by Jean-Philippe Lang almost 5 years ago

  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Target version changed from Candidate for next major release to 2.3.0
  • Resolution set to Fixed

Committed with slight changes in r10954.

Also available in: Atom PDF