gmime.autocrypt_header
Module for [AutocryptHeader] class
Types 3
An object containing Autocrypt information about a given e-mail address, as derived from a message header.
See https://autocrypt.org/ for details and motivation.
Methods
AutocryptHeader self()Returns `this`, for use in `with` statements.AutocryptHeaderGidBuilder builder()Get builder for [gmime.autocrypt_header.AutocryptHeader] Returns: New builder objectgmime.autocrypt_header.AutocryptHeader newFromString(string string_)Creates a new #GMimeAutocryptHeader object based on the value of an Autocrypt: header.void clone(gmime.autocrypt_header.AutocryptHeader src)If address and type already match between src and dst, copy keydata, preferencrypt, effectivedate from src to dst.int compare(gmime.autocrypt_header.AutocryptHeader ah2)Compare two Autocrypt Headers. This is useful for comparison, as well as for sorting headers by:gmime.internet_address_mailbox.InternetAddressMailbox getAddress()Gets the internal address of the Autocrypt header, or null if not set. Returns: the address associated with the Autocrypt headerstring getAddressAsString()Gets the internal address of the Autocrypt header as a C string, or null if not set. Returns: the address associated with the Autocrypt headerglib.date_time.DateTime getEffectiveDate()Gets the effective date of the Autocrypt header, or null if not set. Returns: the effective date associated with the Autocrypt headerglib.bytes.Bytes getKeydata()Gets the raw keydata of the Autocrypt header, or null if not set. Returns: the raw key data associated with the Autocrypt headergmime.types.AutocryptPreferEncrypt getPreferEncrypt()Gets the encryption preference stated by the Autocrypt header. Returns: the encryption preference associated with the Autocrypt headerbool isComplete()When dealing with Autocrypt headers derived from a message, some sender addresses will not have a legitimate/complete header associated with them. When a given sender address has no complete heade...void setAddress(gmime.internet_address_mailbox.InternetAddressMailbox address)Set the address associated with the autocrypt_header.void setAddressFromString(string address)Set the address associated with the autocrypt_header.void setEffectiveDate(glib.date_time.DateTime effectiveDate)Set the effective date associated with the Autocrypt header.void setKeydata(glib.bytes.Bytes keydata)Set the raw key data associated with the Autocrypt header.void setPreferEncrypt(gmime.types.AutocryptPreferEncrypt pref)Set the encryption preference associated with the Autocrypt header.string toString_(bool gossip)Gets the string representation of the Autocrypt header, or null on error. For example, it might return:Fluent builder for [gmime.autocrypt_header.AutocryptHeader]
Methods