ivaldi / brimir

Email helpdesk built using Ruby on Rails and Zurb Foundation
http://getbrimir.com
GNU Affero General Public License v3.0
1.38k stars 299 forks source link

Internal Server error on MAILER-DAEMON mail #413

Closed cthiel closed 5 years ago

cthiel commented 6 years ago

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.

lostapathy commented 6 years ago

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

cthiel commented 6 years ago

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