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
GType _getGType() static nothrow
GType _gType() @property nothrow
AutocryptHeader self() nothrowReturns `this`, for use in `with` statements.
AutocryptHeaderGidBuilder builder() static nothrowGet builder for [gmime.autocrypt_header.AutocryptHeader] Returns: New builder object
gmime.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 header
string 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 header
glib.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 header
glib.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 header
gmime.types.AutocryptPreferEncrypt getPreferEncrypt() nothrowGets the encryption preference stated by the Autocrypt header. Returns: the encryption preference associated with the Autocrypt header
bool 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:
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GMimeAutocryptHeader object. Returns: a new #GMimeAutocryptHeader object.
Methods
AutocryptHeader build() nothrowCreate object from builder. Returns: New object