Actions
Defect #30785
closedMail handler does not ignore emails sent from emission email address if Setting.mail_from includes display name
Defect #30785:
Mail handler does not ignore emails sent from emission email address if Setting.mail_from includes display name
Resolution:
Fixed
Affected version:
Description
According to the comment at source:tags/4.0.1/app/models/mail_handler.rb#L93, mail handler is supposed to ignore emails sent from emission email address (Setting.mail_from). It behaves as expected if Setting.mail_from only includes an email address like "joe@example.com". However, it does not ignore the emails if Setting.mail_from includes a display name like "Joe Bloggs <joe@example.com>". The reason is that the code at source:tags/4.0.1/app/models/mail_handler.rb#L94 don't assume the format other than "joe@example.com".
- OK:
joe@example.com - NG:
<joe@example.com> - NG:
Joe Bloggs <joe@example.com> - NG:
joe@example.com (Joe Bloggs)
Files
Actions