Message.getAutocryptGossipHeaders

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

now glib.date_time.DateTime

a #GDateTime object, or null

flags gmime.types.DecryptFlags

a #GMimeDecryptFlags, to be used during decryption

sessionKey string

session key to use or null

Return Value

Type: gmime.autocrypt_header_list.AutocryptHeaderList

a new #GMimeAutocryptHeaderList object, or null on error.

Throws