Mailspring/packages/local-sync/spec
Christine Spang 40c7b09e27 [local-sync] Use mimelib to parse contacts
Summary:
Because of the way we were attempting to parse contacts from
From/To/Cc/Bcc headers by converting them to JSON with a regex, we were
erroneously breaking contacts that contained commas in quoted names into
multiple contacts. This could result in things like parsing multiple
addresses for the From: header, incorrectly!

To resolve the problem, replace our homegrown logic with mimelib's
seemingly excellent parseAddresses(), which handles this and a myriad of
other cases correctly.

Fixes: T7370

Test Plan: unit tests included

Reviewers: mark

Reviewed By: mark

Differential Revision: https://phab.nylas.com/D3565
2016-12-29 15:48:12 -08:00
..
fixtures fix(snippet-parsing): Don't add extraneous spaces after text format tags 2016-12-23 18:26:35 -08:00
imap [local-private, local-sync] temporarily disable specs 2016-12-15 12:57:24 -05:00
helpers.js [local-sync] Parse DOM to extract snippets 2016-12-13 16:32:22 -08:00
message-factory-spec.js [local-sync] Use mimelib to parse contacts 2016-12-29 15:48:12 -08:00
threading-spec.js [local-private, local-sync] temporarily disable specs 2016-12-15 12:57:24 -05:00