Mailspring/packages
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
..
isomorphic-core perf(delta): replaces API delta stream with direct in-memory one 2016-12-21 18:42:52 -08:00
local-private fix(tracking): Save updated metadata correctly and stop sending account ID with request 2016-12-19 15:40:38 -08:00
local-sync [local-sync] Use mimelib to parse contacts 2016-12-29 15:48:12 -08:00