X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;ds=sidebyside;f=mime-node.c;h=a93cbb31daed9d54f0ef8fdfe97414952ebba85c;hb=d439e4b5d1715b96baba5e0fa5b1b81e9746a94c;hp=3492bcd039463bca7f0c6421b32437210f7d5471;hpb=2c1e5c186ee36fb215d3f312f9801884f4720d8f;p=notmuch diff --git a/mime-node.c b/mime-node.c index 3492bcd0..a93cbb31 100644 --- a/mime-node.c +++ b/mime-node.c @@ -339,7 +339,7 @@ mime_node_child (mime_node_t *parent, int child) return NULL; if (GMIME_IS_MULTIPART (parent->part)) { - if (child == 1 && parent->decrypted_child) + if (child == GMIME_MULTIPART_ENCRYPTED_CONTENT && parent->decrypted_child) sub = parent->decrypted_child; else sub = g_mime_multipart_get_part