Mailspring/packages/local-sync/spec/fixtures/MessageFactory/parseFromImap
Christine Spang a23c68092e [local-sync] Add specs for message parsing
Summary:
This commit also fixes snippets for HTML-only messages to strip out HTML
tags, and makes us preserve whitespace for plaintext emails by
displaying them in <pre class="nylas-plaintext"> tags, and makes us log
messages that fail to parse at all to a tempdir.

The only issue I found with using <pre> tags for plaintext email was
that some lines may trigger scrolling, so there is an associated commit
(D3484) that changes the CSS for <pre class="nylas-plaintext"> to wrap
lines.

In the future, we can add regression tests to this test suite whenever
we fix parsing bugs.

Test Plan: unit tests included

Reviewers: bengotow

Reviewed By: bengotow

Differential Revision: https://phab.nylas.com/D3483
2016-12-07 07:25:28 -08:00
..
crypto-gram-ascii-plaintext.json [local-sync] Add specs for message parsing 2016-12-07 07:25:28 -08:00
eff-plaintext-no-mime.json [local-sync] Add specs for message parsing 2016-12-07 07:25:28 -08:00
hacker-newsletter-multipart-alternative.json [local-sync] Add specs for message parsing 2016-12-07 07:25:28 -08:00
mileageplus-mime-html-only.json [local-sync] Add specs for message parsing 2016-12-07 07:25:28 -08:00
node-streamtest-windows-1252.json [local-sync] Add specs for message parsing 2016-12-07 07:25:28 -08:00
spam-mime-html-base64-encoded.json [local-sync] Add specs for message parsing 2016-12-07 07:25:28 -08:00
theskimm-multipart-alternative-quoted-printable.json [local-sync] Add specs for message parsing 2016-12-07 07:25:28 -08:00