Feature #17699
Parse author's name enclosed in parentheses in the From field when creating a user account from an email
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | Email receiving | |||
Target version: | 4.1.0 | |||
Resolution: |
Description
Emails header "From" can be not only in angles format, like this:
From: John Doe <john.doe@company.mail>but also in parentheses format, like this:
From: john.doe@company.mail (John Doe)For example sendmail from postfix does this when using switch -F.
The patch to fix this is attached.
Associated revisions
Parse author's name enclosed in parentheses in the From field when creating a user account from an email (#17699).
Patch by Go MAEDA.
Missing fixture (#17699).
History
#1
Updated by Toshi MARUYAMA over 6 years ago
- Category set to Email receiving
Please add test.
source:trunk/test/unit/mail_handler_test.rb
#2
Updated by Toshi MARUYAMA over 6 years ago
- Subject changed from Parse email with header "From" in parens format to Parse email with header "From" in parentheses format
- Description updated (diff)
#3
Updated by Stanislav German-Evtushenko over 6 years ago
- File email_from_parens_format_test.diff
added
#4
Updated by Go MAEDA almost 2 years ago
- Target version set to Candidate for next major release
#5
Updated by Go MAEDA almost 2 years ago
- File 17699-fix-using-mail-address-object.diff
added
- Target version changed from Candidate for next major release to 4.0.2
I wrote a new patch. The code using Mail::Address
is shorter and maybe more reliable (I hope) than the code using our regular expressions.
#6
Updated by Go MAEDA almost 2 years ago
- Target version changed from 4.0.2 to 4.1.0
#7
Updated by Go MAEDA almost 2 years ago
- File 17699-fix-using-mail-address-object-v2.diff added
Updated the patch. email.header['from']
can be nil or Mail::UnstructuredField
object (does not have addrs
method).
#8
Updated by Go MAEDA almost 2 years ago
- File deleted (
17699-fix-using-mail-address-object-v2.diff)
#9
Updated by Go MAEDA almost 2 years ago
- File 17699-fix-using-mail-address-object-v2.diff
added
#10
Updated by Go MAEDA almost 2 years ago
- File 17699-fix-using-mail-address-object-v3.diff
added
Updated the patch again. from_addr.comments
also can be nil.
#11
Updated by Go MAEDA almost 2 years ago
- File 17699-fix-using-mail-address-object-v4.diff
added
#12
Updated by Go MAEDA almost 2 years ago
- Status changed from New to Closed
- Assignee set to Go MAEDA
Committed the patch.
#13
Updated by Go MAEDA almost 2 years ago
- Subject changed from Parse email with header "From" in parentheses format to Parse author's name enclosed in parentheses in the From field when creating a user account from an email
#14
Updated by Go MAEDA almost 2 years ago
- Tracker changed from Patch to Feature