David Bremner <david@tethera.net> writes: > David Bremner <david@tethera.net> writes: > >> The test JSON here is not correct, but the larger problem is thatit >> seems like no actual decryption is being done. > > I played with this some more, and it seems like Jamie's code (and the > gmime sample code [1] expects the top level part to be > multipart/encrypted. By repeated bludgeoning I convinced notmuch show to actually run the decryption code, but then I hit another problem: there isn't an obvious high level way to decrypt an application/(x)-pkcs7-mime part (and the current code only works for multipart/encrypted). It should be possible up GMimeStreams and use g_mime_crypto_context_decrypt, but that seems like quite a bit more work than calling g_mime_multipart_encrypted_decrypt.