Homec4science

Properly parse email replies with varied 'To' address formats

Authored by epriestley <git@epriestley.com> on May 29 2011, 12:33.

Description

Properly parse email replies with varied 'To' address formats

Summary:
While my client and some others send email replies with an address like

T1+x+y@example.com##, some other clients have sent either

<T1+x+y@example.com> or "T1+x+y@example.com" <T1+x+y@example.com>##.

Properly parse all the formats we've seen in the wild.

Test Plan:
Ran the regexp against all the formats observed in the wild (see
https://secure.phabricator.com/mail/received/) and verified it parses them
correctly.

Reviewed By: jungejason
Reviewers: tuomaspelkonen, jungejason, aran
CC: anjali, aran, jungejason
Differential Revision: 370

Details

Committed
epriestley <git@epriestley.com>May 30 2011, 09:38
Pushed
aubortJan 31 2017, 17:16
Parents
rPH0238f260df02: When an email reply to a task includes files, attach them to the task
Branches
Unknown
Tags
Unknown

Event Timeline

epriestley <git@epriestley.com> committed rPH0cdf4c251853: Properly parse email replies with varied 'To' address formats (authored by epriestley <git@epriestley.com>).May 30 2011, 09:38