Mailspring/internal_packages/message-list
John McNair dccf4f3ad3 Parse Office 365 names (#2016)
Office 365 likes to format email addresses as follows:
Last Name, First Name (Some Description) <email@address.org>

This causes Contact.firstName() (and hence sometimes displayName()) to return
"Last Name," which looks a bit odd in the message/thread views.

The intent of the commit is to correctly parse these names so that (using the
above example):
- firstName = "First Name"
- lastName = "Last Name (Some Description)"
- fullName = "First Name Last Name (Some Description)"

These behavioral changes only impact names containing a ','.

I don't know that this really provides exhaustive coverage of Office 365, and
keeping the description as part of the last name is not completely guilt free,
but it's not any worse than the previous state of affairs which also has
the description in the same field but combined instead with (misplaced)
first name data.
2016-04-27 10:26:23 -07:00
..
lib Parse Office 365 names (#2016) 2016-04-27 10:26:23 -07:00
spec fix(autolinker): Don't match emails that are also URLs #2071 2016-04-26 19:03:43 -07:00
stylesheets fix(react): Fix several warnings in missing imports 2016-04-05 14:53:37 -07:00
.gitignore fix(drafts): Various improvements and fixes to drafts, draft state management 2015-02-03 16:24:31 -08:00
package.json rm(autolinker): Use our own very simple autolinker 2016-03-14 12:30:54 -07:00