Mailspring/internal_packages/message-list/lib
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
..
plugins rm(autolinker): Use our own very simple autolinker 2016-03-14 12:30:54 -07:00
autolinker.es6 fix(autolinker): Don't match emails that are also URLs #2071 2016-04-26 19:03:43 -07:00
autoscale-images.es6 fix(autoscale): Apply vw when width and height are not present 2016-04-07 18:02:04 -07:00
email-frame-styles-store.coffee fix(dark-mode): Adjust email CSS immediately upon switching themes 2015-11-23 20:20:06 -08:00
email-frame.jsx fix(quoted-text): Correctly update container height 2016-04-05 14:27:54 -07:00
find-in-thread.jsx refactor(menus): Major prune of keymaps/commands, real conditional menus 2016-04-24 12:16:25 -05:00
main.cjsx feat(selection): Add new display for selection count + update toolbar 2016-03-21 12:20:11 -07:00
message-controls.cjsx fix(drafts): Formalize draft factory, add reply "behaviors" #1722 2016-03-22 15:47:51 -07:00
message-item-body.cjsx fix(inline): radial progress, merge body with download data on render 2016-03-31 15:16:21 -07:00
message-item-container.cjsx fix(focus): Remove focusedField in favor of imperative focus, break apart ComposerView 2016-04-04 15:22:01 -07:00
message-item.cjsx fix(attachments): Don't show the paperclip for inline attachments < 3k (signatures, etc.) 2016-04-20 10:44:32 -07:00
message-list-hidden-messages-toggle.jsx fix(hidden-messages): Address diff feedback from @jstejada 2016-03-02 10:28:32 -08:00
message-list.cjsx refactor(menus): Major prune of keymaps/commands, real conditional menus 2016-04-24 12:16:25 -05:00
message-participants.cjsx Parse Office 365 names (#2016) 2016-04-27 10:26:23 -07:00
message-timestamp.cjsx fix(spec): fix message timestamp spec 2016-03-09 16:44:44 -05:00
sidebar-participant-picker.jsx fix(contact-sidebar): Don't render <select> when no contacts available 2016-04-07 09:57:53 -07:00
sidebar-plugin-container.cjsx feat(sidebar): Add thread list of currently selected participants 2016-03-09 14:33:31 -05:00
thread-archive-button.cjsx fix(gmail-labels): Constraint so threads always belong to all,spam or trash 2016-03-10 14:13:31 -08:00
thread-star-button.cjsx feat(tooltip): use native tooltip style 2015-10-21 11:27:57 -07:00
thread-toggle-unread-button.cjsx Harmonize require and remove unused ones. 2015-12-17 00:02:37 +01:00
thread-trash-button.cjsx feat(unread/spam): New items in the sidebar for unread and spam 2016-04-19 11:32:33 -07:00