Mailspring/spec
John McNair f818a134dd 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
..
components fix(frame): fix link clicking in iframes 2016-04-25 17:30:30 -07:00
extensions fix(quick-schedule): Update to use new APIs, remove leftover docs 2016-03-18 10:43:43 -07:00
fixtures cson(packages): Remove from specs, deprecate use for for menus, package.json files 2016-04-24 20:31:53 -05:00
models Parse Office 365 names (#2016) 2016-04-27 10:26:23 -07:00
services
stores fix(accounts): show messages and coerce config when invalid 2016-04-26 15:34:17 -07:00
tasks fix(schedule): Use draft session to udpate metadata, always save in syncback 2016-04-11 14:32:54 -07:00
action-bridge-spec.coffee
auto-update-manager-spec.coffee
buffered-process-spec.coffee
clipboard-spec.coffee
component-registry-spec.coffee
database-object-registry-spec.coffee feat(win): faster popout windows 2016-04-22 13:30:42 -07:00
date-utils-spec.es6
dom-utils-spec.coffee
extension-registry-spec.coffee
jasmine-helper.coffee cleanup(specs): Remove space-pen. Goodbye, jQuery! 2016-04-26 13:14:07 -07:00
jasmine.js
launch-services-spec.coffee
list-selection-spec.coffee
mail-rules-processor-spec.coffee
mailbox-perspective-spec.es6 feat(unread/spam): New items in the sidebar for unread and spam 2016-04-19 11:32:33 -07:00
menu-manager-spec.coffee refactor(menus): Major prune of keymaps/commands, real conditional menus 2016-04-24 12:16:25 -05:00
module-cache-spec.coffee
n1-spec-reporter.cjsx cleanup(specs): Remove space-pen. Goodbye, jQuery! 2016-04-26 13:14:07 -07:00
nylas-api-spec.coffee fix(specs): * 2016-04-08 16:03:21 -07:00
nylas-env-spec.coffee refactor(menus): Major prune of keymaps/commands, real conditional menus 2016-04-24 12:16:25 -05:00
nylas-protocol-handler-spec.coffee
nylas-test-utils.coffee cson(cleanup): Remove imports, only used for config.cson now 2016-04-24 20:33:34 -05:00
package-manager-spec.coffee cleanup(specs): Remove space-pen. Goodbye, jQuery! 2016-04-26 13:14:07 -07:00
package-spec.coffee cleanup(specs): Remove space-pen. Goodbye, jQuery! 2016-04-26 13:14:07 -07:00
quoted-html-transformer-spec.coffee
quoted-plain-text-transformer-spec.coffee
spec-bootstrap.coffee
spec-helper-platform.coffee
spec-helper.coffee cleanup(specs): Remove space-pen. Goodbye, jQuery! 2016-04-26 13:14:07 -07:00
spec-suite.coffee
spellchecker-spec.coffee
style-manager-spec.coffee
styles-element-spec.coffee
task-factory-spec.es6 fix(remove-from-view): Fix logic for delete/remove-from-view behavior: 2016-03-07 18:16:37 -08:00
theme-manager-spec.coffee cleanup(specs): Remove space-pen. Goodbye, jQuery! 2016-04-26 13:14:07 -07:00
time-override.coffee
time-reporter.coffee
undo-manager-spec.coffee
utils-spec.coffee fix(trash/spam): New inAllMail filter applied to all mailbox views except trash and spam 2016-03-10 12:41:32 -08:00