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.
This is the mail system at host mta.example.com
I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can
delete your own text from the attached returned message.
The mail system
<redmine@example.com>: Command died
with status 1: "/some/where/redmine/extra/mail_handler/rdm-mailhandler.rb
--url http://redmine.example.com/redmine/ --key **********
--allow-override=tracker,category,priority --project=someproject
--unknown-user=accept --no-permission-check". Command output:
/usr/share/ruby/2.0/net/protocol.rb:153:in `read_nonblock': end of file
reached (EOFError) from /usr/share/ruby/2.0/net/protocol.rb:153:in
`rbuf_fill' from /usr/share/ruby/2.0/net/protocol.rb:134:in `readuntil'
from /usr/share/ruby/2.0/net/protocol.rb:144:in `readline' from
/usr/share/ruby/2.0/net/http/response.rb:39:in `read_status_line' from
/usr/share/ruby/2.0/net/http/response.rb:28:in `read_new' from
/usr/share/ruby/2.0/net/http.rb:1406:in `block in transport_request' from
/usr/share/ruby/2.0/net/http.rb:1403:in `catch' from
/usr/share/ruby/2.0/net/http.rb:1403:in `transport_request' from
/usr/share/ruby/2.0/net/http.rb:1376:in `request' from
/some/where/redmine/extra/mail_handler/rdm-mailhandler.rb:36:in `block in
post_form' from /usr/share/ruby/2.0/net/http.rb:852:in `start' from
/some/where/redmine/extra/mail_handler/rdm-mailhandler.rb:36:in `post_form'
from /some/where/redmine/extra/mail_handler/rdm-mailhandler.rb:131:in
`submit' from
/some/where/redmine/extra/mail_handler/rdm-mailhandler.rb:178:in `<main>'
We can avoid the preceding by this patch. The email will be deferred, not bounced.