index: repair "Mixed Up" messages before indexing.
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 28 May 2019 18:42:26 +0000 (14:42 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sun, 15 Sep 2019 23:07:06 +0000 (19:07 -0400)
commit4b1a8fd18364a6e1f1a6e987c64aae760505999e
treeca8cacba5927fa2a2de4188efd63c5d9156dd826
parent67666538b3d8e0d10d2778b55d0cd2549a73b274
index: repair "Mixed Up" messages before indexing.

When encountering a message that has been mangled in the "mixed up"
way by an intermediate MTA, notmuch should instead repair it and index
the repaired form.

When it does this, it also associates the index.repaired=mixedup
property with the message.  If a problem is found with this repair
process, or an improved repair process is proposed later, this should
make it easy for people to reindex the relevant message.  The property
will also hopefully make it easier to diagnose this particular problem
in the future.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
doc/man7/notmuch-properties.rst
lib/index.cc
test/T351-pgpmime-mangling.sh