ivaldi/brimir

Internal Server error on MAILER-DAEMON mail

cthiel opened this issue · 2 comments

I'm getting

NoMethodError (undefined method `first' for nil:NilClass):
app/mailers/ticket_mailer.rb:87:in `receive'
app/controllers/tickets_controller.rb:179:in `create'

from time to time, which seem to be triggered by mails like these:
Parameters: {"message"=>"From MAILER-DAEMON Tue Feb 27 23:22:59 2018\n ... }

It would be great to not fail in cases like these and still make the mail/ticket available.

FWIW, I have also seen this type of error when running version 2.7.0 of the mail gem, see #422

Seems like master was downgraded to mail 2.6.6 -- let's see if the error comes back.