mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-04 07:10:06 +08:00
f818a134dd
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. |
||
---|---|---|
.. | ||
lib | ||
spec | ||
stylesheets | ||
.gitignore | ||
package.json |