Mailspring/internal_packages
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
..
account-sidebar refactor(menus): Major prune of keymaps/commands, real conditional menus 2016-04-24 12:16:25 -05:00
attachments fix(attachments): Make presentError display underlying error, file optional. Sentry 27089 2016-04-26 14:03:08 -07:00
category-picker refactor(menus): Major prune of keymaps/commands, real conditional menus 2016-04-24 12:16:25 -05:00
composer fix(composer): Wait frames not msec on focus out #2033 2016-04-26 13:14:06 -07:00
composer-emoji fix(composer-emoji): Fix calculation for category positioning 2016-04-12 14:51:56 -07:00
composer-signature 🎨(preferences): Adjust textbox styles for signatures and templates 2016-04-07 14:12:35 -07:00
composer-spellcheck fix(syncback): Bidirectional transforms, ready-to-send saved state 2016-03-16 19:27:12 -07:00
composer-templates refactor(composer): Make session, draft available everywhere 2016-04-19 16:05:15 -07:00
composer-translate refactor(composer): Make session, draft available everywhere 2016-04-19 16:05:15 -07:00
draft-list refactor(menus): Major prune of keymaps/commands, real conditional menus 2016-04-24 12:16:25 -05:00
events bump(electron): 0.36.7 => 0.37.5 2016-04-12 18:42:57 -07:00
github-contact-card lint(github-card): Change duplicated variable name 2016-04-19 17:34:19 -07:00
message-autoload-images fix(autoload-images): Bar disappears when you choose to load images 2016-03-07 18:19:17 -08:00
message-list Parse Office 365 names (#2016) 2016-04-27 10:26:23 -07:00
message-view-on-github fix(build): CSON => JSON no longer necessary for /keymaps, /menus 2016-04-24 20:27:29 -05:00
mode-switch 💄(sidebar): Replace icon with person 2016-03-10 11:15:52 -08:00
notification-mailto fix(license): GPLv3 => GPL-3.0 2015-12-07 10:50:47 -08:00
notification-update-available fix(require): Move more requires to new electron format 2016-04-13 15:35:01 -07:00
notifications fix(db): Counts no longer require Thread table join 2016-04-11 13:51:31 -07:00
onboarding feat(win): faster popout windows 2016-04-22 13:30:42 -07:00
participant-profile feat(package): fix build-resources-task and move submodule 2016-04-25 16:01:56 -07:00
personal-level-indicators es6(*): convert 20+ source files used in example packages to ES2016 2016-02-29 18:47:22 -08:00
phishing-detection Fixed text overflow in phishing detection indicator 2016-03-11 20:33:06 +01:00
plugins 🎨(plugins): Fix line breaks 2016-04-24 18:32:53 -07:00
preferences Linux launch on start (#2019) 2016-04-27 09:22:23 -07:00
print 💄(print): Fix #1425 2016-02-26 14:40:16 -08:00
screenshot-mode feat(package): require 'engines': {'nylas': '*'} in package.json 2016-04-25 15:06:37 -07:00
send-and-archive fix(gmail-labels): Constraint so threads always belong to all,spam or trash 2016-03-10 14:13:31 -08:00
sidebar-fullcontact bump(react): 0.13.2 => 0.14.7 2016-03-29 01:43:12 -07:00
system-tray fix(tray): Re add old icon assets for tray icon for win32 and linux 2016-03-25 10:05:17 -07:00
theme-picker refactor(menus): Major prune of keymaps/commands, real conditional menus 2016-04-24 12:16:25 -05:00
thread-list cson(cleanup): Remove imports, only used for config.cson now 2016-04-24 20:33:34 -05:00
thread-search fix(build): CSON => JSON no longer necessary for /keymaps, /menus 2016-04-24 20:27:29 -05:00
thread-search-index feat(thread-search): Make thread search indexing smarter 2016-04-07 09:57:29 -07:00
thread-snooze fix(focus): Remove focusedField in favor of imperative focus, break apart ComposerView 2016-04-04 15:22:01 -07:00
ui-dark refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
ui-darkside correcting size of window contol buttons 2016-04-02 15:02:26 -05:00
ui-light feat(theme-selector): Add theme selector to preferences page 2015-12-15 10:29:58 -08:00
ui-taiga fix(sidebar): Fix overflow of account name 2016-04-26 15:53:51 -07:00
ui-ubuntu refactor(ui-variables): Clean UI variables for consistency/usage 2016-03-15 11:18:50 -07:00
undo-redo refactor(menus): Major prune of keymaps/commands, real conditional menus 2016-04-24 12:16:25 -05:00
unread-notifications Revert "fix(sidebar): Correctly update sidebar when a notif is selected" 2016-02-02 10:58:24 -08:00
worker-sync feat(win): faster popout windows 2016-04-22 13:30:42 -07:00
worker-ui fix(require): Move more requires to new electron format 2016-04-13 15:35:01 -07:00