Project

General

Profile

Actions

Feature #17699

closed

Parse author's name enclosed in parentheses in the From field when creating a user account from an email

Added by Stanislav German-Evtushenko about 10 years ago. Updated over 5 years ago.

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

0%

Estimated time:
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.


Files

Actions #1

Updated by Toshi MARUYAMA about 10 years ago

  • Category set to Email receiving
Actions #2

Updated by Toshi MARUYAMA about 10 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)
Actions #4

Updated by Go MAEDA over 5 years ago

  • Target version set to Candidate for next major release
Actions #5

Updated by Go MAEDA over 5 years ago

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.

Patches to commit:
Actions #6

Updated by Go MAEDA over 5 years ago

  • Target version changed from 4.0.2 to 4.1.0
Actions #7

Updated by Go MAEDA over 5 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).

Actions #8

Updated by Go MAEDA over 5 years ago

  • File deleted (17699-fix-using-mail-address-object-v2.diff)
Actions #10

Updated by Go MAEDA over 5 years ago

Updated the patch again. from_addr.comments also can be nil.

Actions #12

Updated by Go MAEDA over 5 years ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the patch.

Actions #13

Updated by Go MAEDA over 5 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
Actions #14

Updated by Go MAEDA over 5 years ago

  • Tracker changed from Patch to Feature
Actions

Also available in: Atom PDF