Project

General

Profile

Defect #2916 ยป ignore-emails-without-from-header.diff

Patch to fix issue, one line change - Nick Hemsley, 2009-03-06 05:31

View differences:

app/models/mail_handler.rb (working copy)
# 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.first.to_s.strip) unless email.from.nil?
unless @user
# Unknown user => the email is ignored
# TODO: ability to create the user's account
    (1-1/1)