]> git.notmuchmail.org Git - notmuch/commitdiff
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)
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>

No differences found