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
AutocryptHeaderGidBuilder builder() static nothrowGet builder for [gmime.autocrypt_header.AutocryptHeader] Returns: New builder objectgmime.autocrypt_header.AutocryptHeader newFromString(string string_) static nothrowCreates a new #GMimeAutocryptHeader object based on the value of an Autocrypt: header.void clone(gmime.autocrypt_header.AutocryptHeader src) nothrowIf address and type already match between src and dst, copy keydata, prefer_encrypt, effective_date from src to dst.int compare(gmime.autocrypt_header.AutocryptHeader ah2) nothrowCompare two Autocrypt Headers. This is useful for comparison, as well as for sorting headers by:gmime.internet_address_mailbox.InternetAddressMailbox getAddress() nothrowGets the internal address of the Autocrypt header, or null if not set. Returns: the address associated with the Autocrypt headerstring getAddressAsString() nothrowGets 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() nothrowGets the effective date of the Autocrypt header, or null if not set. Returns: the effective date associated with the Autocrypt headerglib.bytes.Bytes getKeydata() nothrowGets 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() nothrowGets the encryption preference stated by the Autocrypt header. Returns: the encryption preference associated with the Autocrypt headerbool isComplete() nothrowWhen 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) nothrowSet the address associated with the autocrypt_header.void setAddressFromString(string address) nothrowSet the address associated with the autocrypt_header.void setEffectiveDate(glib.date_time.DateTime effectiveDate) nothrowSet the effective date associated with the Autocrypt header.void setKeydata(glib.bytes.Bytes keydata) nothrowSet the raw key data associated with the Autocrypt header.void setPreferEncrypt(gmime.types.AutocryptPreferEncrypt pref) nothrowSet the encryption preference associated with the Autocrypt header.string toString_(bool gossip) nothrowGets the string representation of the Autocrypt header, or null on error. For example, it might return:Fluent builder implementation template for gmime.autocrypt_header.AutocryptHeader
Fluent builder for gmime.autocrypt_header.AutocryptHeader
Methods