diff options
Diffstat (limited to 'app/models/mail_handler.rb')
-rw-r--r-- | app/models/mail_handler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/mail_handler.rb b/app/models/mail_handler.rb index 9836a4a7e..9b6410d57 100644 --- a/app/models/mail_handler.rb +++ b/app/models/mail_handler.rb @@ -40,7 +40,7 @@ class MailHandler < ActionMailer::Base # Processes incoming emails def receive(email) @email = email - @user = User.active.find_by_mail(email.from.first.to_s.strip) + @user = User.active.find_by_mail(email.from.to_a.first.to_s.strip) unless @user # Unknown user => the email is ignored # TODO: ability to create the user's account |