Project

General

Profile

rake redmine:email:receive_imap vs attachment *.eml or *.msg

Added by David Doležal over 3 years ago

Hi,
I have small issue. User send via e-amil message, which contains another messege as attachment.

I use for fetching to Redmine script rake redmine:email:receive_imap, but in this situation doesn't work.

rake aborted!
Errno::ECONNRESET: An existing connection was forcibly closed by the remote host. @ io_fillbuf - fd:4
c:/Ruby26-x64/lib/ruby/2.6.0/net/imap.rb:1230:in `gets'
c:/Ruby26-x64/lib/ruby/2.6.0/net/imap.rb:1230:in `get_response'
c:/Ruby26-x64/lib/ruby/2.6.0/net/imap.rb:1147:in `receive_responses'
c:/Ruby26-x64/lib/ruby/2.6.0/net/imap.rb:1120:in `block in initialize'

I tried to find some solution for it, but without success. I never met with this problem before.

My conf:

Environment:
  Redmine version                4.1.1.stable
  Ruby version                   2.6.6-p146 (2020-03-31) [x64-mingw32]
  Rails version                  5.2.4.2
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::SuckerPunchAdapter
  Mailer delivery                smtp
SCM:
  Filesystem                     
Redmine plugins:
  redmine_custom_workflows       1.0.3
  redmine_lightbox2              0.5.0