X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=mime-node.c;h=66ff744671fb3def8cae892fbe4e755f5a58f09d;hb=2c08beb2546156940e30526fc6759f4ee74b4fed;hp=e33336bbb32e8ed11cdc58f88369e675652bd250;hpb=103c11822ee0b7645fda6397fb40f8ac7ed9b49b;p=notmuch diff --git a/mime-node.c b/mime-node.c index e33336bb..66ff7446 100644 --- a/mime-node.c +++ b/mime-node.c @@ -34,6 +34,7 @@ typedef struct mime_node_context { GMimeStream *stream; GMimeParser *parser; GMimeMessage *mime_message; + _notmuch_message_crypto_t *msg_crypto; /* Context provided by the caller. */ _notmuch_crypto_t *crypto; @@ -54,6 +55,12 @@ _mime_node_context_free (mime_node_context_t *res) return 0; } +const _notmuch_message_crypto_t* +mime_node_get_message_crypto_status (mime_node_t *node) +{ + return node->ctx->msg_crypto; +} + notmuch_status_t mime_node_open (const void *ctx, notmuch_message_t *message, _notmuch_crypto_t *crypto, mime_node_t **root_out)