Project

General

Profile

Actions

Defect #30785

closed

Mail handler does not ignore emails sent from emission email address if Setting.mail_from includes display name

Added by Go MAEDA about 5 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Email receiving
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
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 "". However, it does not ignore the emails if Setting.mail_from includes a display name like "Joe Bloggs <>". 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 "".

  • OK: joe@example.com
  • NG: <joe@example.com>
  • NG: Joe Bloggs <joe@example.com>
  • NG: joe@example.com (Joe Bloggs)

Files

30785-fix.diff (2.05 KB) 30785-fix.diff Go MAEDA, 2019-02-12 13:06
30785-fix-v2.patch (1.92 KB) 30785-fix-v2.patch Go MAEDA, 2019-02-17 06:01

Related issues

Related to Redmine - Defect #14792: Don't add a display name and extra angle brackets in List-Id header fieldClosedGo MAEDA

Actions
Actions

Also available in: Atom PDF