]> git.cworth.org Git - notmuch/commit
cli/{show,reply}: use repaired form of "Mixed Up" mangled messages
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Tue, 28 May 2019 18:46:48 +0000 (14:46 -0400)
committerDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Sun, 15 Sep 2019 23:07:06 +0000 (19:07 -0400)
commit23bcd003637f091c88f7d0a601d5fee82bc8e936
tree7eedb8a7882ae5f85b44de15bbc5ddde00992e3c
parent4b1a8fd18364a6e1f1a6e987c64aae760505999e
cli/{show,reply}: use repaired form of "Mixed Up" mangled messages

When showing or replying to a message that has been mangled in transit
by an MTA in the "Mixed up" way, notmuch should instead use the
repaired form of the message.

Tracking the repaired GMimeObject for the lifetime of the mime_node so
that it is cleaned up properly is probably the trickiest part of this
patch, but the choices here are based on the idea that the
mime_node_context is the memory manager for the whole mime_node tree
in the first place, so new GMimeObject tree created on-the-fly during
message parsing should be disposed of in the same place.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
mime-node.c
test/T351-pgpmime-mangling.sh