else
# Default behaviour, emails from unknown users are ignored
if logger && logger.info
- logger.info "MailHandler: ignoring email from unknown user [#{sender_email}]"
+ logger.info "MailHandler: ignoring email from unknown user [#{sender_email}]"
end
return false
end
}
if assignee.nil? && keyword.match(/ /)
firstname, lastname = *(keyword.split) # "First Last Throwaway"
- assignee ||= assignable.detect {|a|
+ assignee ||= assignable.detect {|a|
a.is_a?(User) && a.firstname.to_s.downcase == firstname &&
a.lastname.to_s.downcase == lastname
}