notmuch/test/corpora
Daniel Kahn Gillmor cb522fb06e test: add test for "Mixed-Up Mime" message mangling
Some MTAs mangle e-mail messages in transit in ways that are
repairable.

Microsoft Exchange (in particular, the version running today on
Office365's mailservers) appears to mangle multipart/encrypted
messages in a way that makes them undecryptable by the recipient.

I've documented this in section 4.1 "Mixed-up encryption" of draft -00
of
https://tools.ietf.org/html/draft-dkg-openpgp-pgpmime-message-mangling

Fortunately, it's possible to repair such a message, and notmuch can
do that so that a user who receives an encrypted message from a user
of office365.com can still decrypt the message.

Enigmail already knows about this particular kind of mangling.  It
describes it as "broken PGP email format probably caused by an old
Exchange server", and it tries to repair by directly changing the
message held by the user.  if this kind of repair goes wrong, the
repair process can cause data loss
(https://sourceforge.net/p/enigmail/bugs/987/, yikes).

The tests introduced here are currently broken.  In subsequent
patches, i'll introduce a non-destructive form of repair for notmuch
so that notmuch users can read mail that has been mangled in this way,
and the tests will succeed.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2019-09-15 01:20:03 -04:00
..
broken test: two new messages for the 'broken' corpus 2018-04-20 11:23:31 -03:00
crypto test: signature verification during decryption (session keys) 2019-06-08 20:14:00 -03:00
default test: make it possible to have multiple corpora 2016-09-17 08:39:34 -03:00
html test: add known broken test for indexing html 2017-04-20 06:59:40 -03:00
lkml/cur test: add 'lkml' corpus 2017-04-13 21:55:43 -03:00
mangling test: add test for "Mixed-Up Mime" message mangling 2019-09-15 01:20:03 -04:00
protected-headers test: avoid showing legacy-display parts 2019-09-01 08:32:56 -03:00
threading test: add known broken test for good In-Reply-To / bad References 2018-09-06 08:07:13 -03:00
README test/corpora: add an encrypted message for index decryption tests 2017-12-04 21:53:05 -04:00

This directory contains email corpora for testing.

default
  The default corpus is based on about 50 messages from early in the
  history of the notmuch mailing list, which allows for reliably
  testing commands that need to operate on a not-totally-trivial
  number of messages.

broken
  The broken corpus contains messages that are broken and/or RFC
  non-compliant, ensuring we deal with them in a sane way.

html
  The html corpus contains html parts

crypto
  The crypto corpus contains encrypted messages for testing.
  It should probably also contain signed messages in the future.
  Please add them!