Message.getAutocryptGossipHeaders

gmime.autocrypt_header_list.AutocryptHeaderList getAutocryptGossipHeaders(glib.date_time.DateTime now, gmime.types.DecryptFlags flags, string sessionKey = null)

Creates a new #GMimeAutocryptHeaderList 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 #g_mime_multipart_encrypted_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.

Parameters

nowa #GDateTime object, or null
flagsa #GMimeDecryptFlags, to be used during decryption
sessionKeysession key to use or null

Returns

a new #GMimeAutocryptHeaderList object,

or null on error.

Throws

[ErrorWrap]