Mailspring/spec
Christine Spang 63a95c2096 fix(rendering): Fix quote stripping of many plaintext emails
Summary:
Since we changed the way we mark up plaintext emails to wrap them in <pre>
tags, the quote stripper has been failing to restore bodies in the cases
where a plaintext email starts with an inline quote (and thus the whole
contents of the <pre> tag is detected as a quote string).

This diff also fixes the HTML sanitizer to not strip off our custom
"nylas-plaintext" class, which isn't currently used for anything but
allows us to definitively know which tags we added on for marking up
plaintext. Might be useful at some point!

Test Plan: unit test included, manual inspection of message display

Reviewers: evan

Differential Revision: https://phab.nylas.com/D3519
2016-12-15 18:40:34 -08:00
..
components fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
fixtures fix(quote): fix more cases of unwrapped signature detection 2016-11-14 11:55:37 -08:00
models fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
n1-spec-runner fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
registries refactor(registry): move all registries into src/registries 2016-11-14 14:01:00 -08:00
services fix(rendering): Fix quote stripping of many plaintext emails 2016-12-15 18:40:34 -08:00
stores fix(sync-status): Change old per model status, in favor of per folder 2016-12-15 11:17:20 -08:00
tasks fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
themes rm(grim): We’re not using Grim for deprecations 2016-10-25 11:36:20 -07:00
utils fix(specs) Fix date-utils specs 2016-11-07 12:15:47 -08:00
action-bridge-spec.coffee fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
async-test-spec.es6 fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
auto-update-manager-spec.coffee
buffered-process-spec.coffee
database-object-registry-spec.es6 refactor(registry): move all registries into src/registries 2016-11-14 14:01:00 -08:00
default-client-helper-spec.coffee feat(win32): Allow N1 to become the system-wide mailto: handler 2016-10-12 16:05:36 -07:00
list-selection-spec.coffee fix(specs): Add regression test for list-selection 2016-11-02 11:46:28 -07:00
mail-rules-processor-spec.coffee fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
mailbox-perspective-spec.es6 lint(*): Bump to ESLint 3.8 2016-10-17 18:07:35 -07:00
menu-manager-spec.coffee es6(*): Misc src to ES2016 2016-10-27 12:08:59 -07:00
module-cache-spec.coffee
nylas-api-spec.coffee fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
nylas-env-spec.es6 fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
nylas-protocol-handler-spec.es6 fix(specs) convert nylas-protocol-handler-spec to ES6 (#2886) 2016-10-12 11:38:30 -07:00
nylas-test-utils.coffee
package-manager-spec.coffee fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
package-spec.coffee
spellchecker-spec.es6 fix(spec): add support for async specs and disable misbehaving ones 2016-12-15 13:02:00 -05:00
undo-stack-spec.es6 lint(*): Bump to ESLint 3.8 2016-10-17 18:07:35 -07:00