Creates a new AutocryptHeaderList of relevant headers of the given type based on the recipient(s) of an e-mail message.
Returns the same object as g_mime_message_get_autocrypt_gossip_headers_with_inner_part , but handles decryption and cleanup
automatically.
flags and session_key are passed through to
decrypt, as needed.
If the message is not actually an encrypted message, returns null: it should be ignored for purposes of evaluating gossip.
If decryption fails, returns null. In this case, an exception will be set on err to
provide information about the decryption failure.
| this |
a Message object, which is expected to be encrypted. |
| now |
a DateTime object, or null |
| flags |
a DecryptFlags, to be used during decryption |
| session_key |
session key to use or null |
|
a new AutocryptHeaderList object, or null on error. |