X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=util%2Frepair.h;h=492f5a205bc993979a7bc77a20fbe62a0bd44456;hp=9974d69368cf91c156295dbe1c2d4a50e235585e;hb=HEAD;hpb=ff3d873f0b80b023764fe9d3fc0609b81d82775e diff --git a/util/repair.h b/util/repair.h index 9974d693..492f5a20 100644 --- a/util/repair.h +++ b/util/repair.h @@ -25,9 +25,19 @@ extern "C" { * returned object will only be released when the original part is * disposed of. */ + GMimeObject * _notmuch_repair_crypto_payload_skip_legacy_display (GMimeObject *payload); +/* Detecting and repairing "Mixed-Up MIME mangling". see + * https://tools.ietf.org/html/draft-dkg-openpgp-pgpmime-message-mangling-00#section-4.1 + * If this returns NULL, the message was probably not "Mixed up". If + * it returns non-NULL, then there is a newly-allocated MIME part that + * represents the repaired version. The caller is responsible for + * ensuring that any returned object is freed with g_object_unref. */ +GMimeObject * +_notmuch_repair_mixed_up_mangled (GMimeObject *part); + #ifdef __cplusplus } #endif