mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 17:34:54 +01:00
cb522fb06e
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> |
||
---|---|---|
.. | ||
broken | ||
crypto | ||
default | ||
html | ||
lkml/cur | ||
mangling | ||
protected-headers | ||
threading | ||
README |
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!