X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=mime-node.c;h=1609173576e2fa4830e04540231f008bab48f2c8;hb=cb855d8a9d24084d0965790782c1ce04b82aa9ca;hp=bc41b7523c486f72f48b3b132e9241454c568857;hpb=606e320e472b486359cf7a44c488b29e717a3ac8;p=notmuch diff --git a/mime-node.c b/mime-node.c index bc41b752..16091735 100644 --- a/mime-node.c +++ b/mime-node.c @@ -240,14 +240,16 @@ _mime_node_create (mime_node_t *parent, GMimeObject *part) return NULL; } +#if (GMIME_MAJOR_VERSION < 3) if ((GMIME_IS_MULTIPART_ENCRYPTED (part) && node->ctx->crypto->decrypt) || (GMIME_IS_MULTIPART_SIGNED (part) && node->ctx->crypto->verify)) { GMimeContentType *content_type = g_mime_object_get_content_type (part); const char *protocol = g_mime_content_type_get_parameter (content_type, "protocol"); cryptoctx = notmuch_crypto_get_context (node->ctx->crypto, protocol); if (!cryptoctx) - return NULL; + return node; } +#endif /* Handle PGP/MIME parts */ if (GMIME_IS_MULTIPART_ENCRYPTED (part) && node->ctx->crypto->decrypt) {