Project

General

Profile

Actions

Defect #18922

closed

rdm-mailhandler.rb should catch EOFError

Added by Go MAEDA about 9 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Category:
Email receiving
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

rdm-mailhandler.rb should catch EOFError in addition to SystemCallError at source:trunk/extra/mail_handler/rdm-mailhandler.rb@13872#L132.

If communications between rdm-mailhandler.rb and Redmine are terminated while rdm-mailhandler.rb talking to Redmine, Net::HTTP raises EOFError and rdm-mailhandler stops unexpectedly because it does not catch EOFError. The email will be bounced.

error mail from MTA

We can avoid the preceding by this patch. The email will be deferred, not bounced.


Files

catch-EOFError.diff (669 Bytes) catch-EOFError.diff Go MAEDA, 2015-01-21 09:44
catch-IOError.diff (668 Bytes) catch-IOError.diff Go MAEDA, 2015-02-01 03:16
Actions

Also available in: Atom PDF