X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=util%2Frepair.h;h=9974d69368cf91c156295dbe1c2d4a50e235585e;hp=70e2b7bcc9d6733104a1a7ebc19b6eb2f93bd9ee;hb=ff3d873f0b80b023764fe9d3fc0609b81d82775e;hpb=ab0ae8b1c086ca3878f16ce40cc421eeb206c79e diff --git a/util/repair.h b/util/repair.h index 70e2b7bc..9974d693 100644 --- a/util/repair.h +++ b/util/repair.h @@ -11,6 +11,23 @@ extern "C" { * techniques that are designed to improve the user experience of * notmuch */ +/* If payload is a cryptographic payload within an encrypted message, and + * it has a "legacy display" part, then we can skip over it and jump + * to the actual content, because notmuch already handles protected + * headers appropriately. + * + * This function either returns payload directly (if it does not have + * a "legacy display" part), or it returns a pointer to its + * content-bearing subpart, with the "legacy display" part and the + * surrounding multipart/mixed object bypassed. + * + * No new objects are created by calling this function, and the + * returned object will only be released when the original part is + * disposed of. + */ +GMimeObject * +_notmuch_repair_crypto_payload_skip_legacy_display (GMimeObject *payload); + #ifdef __cplusplus } #endif