or null on error.
ObjectWrap.getAutocryptHeaders
gmime.autocrypt_header_list.AutocryptHeaderList getAutocryptHeaders(glib.date_time.DateTime effectiveDate, string matchheader, gmime.internet_address_list.InternetAddressList addresses, bool keepIncomplete)Creates a new #GMimeAutocryptHeaderList of relevant headers of the given type based on the addresses of an mime_part.
Each header in the returned list will:
- have a valid address
- be of the type requested
- be complete
If no Autocrypt header is found for an address, no #GMimeAutocryptHeader will be in the list associated with that e-mail address.
Note that the following types of Autocrypt headers will not be returned by this function:
- headers of an unrequested type
- headers that do not match an address in "From:"
- unparseable headers
- headers with unknown critical attributes
- duplicate valid headers for a given address
On error (e.g. if this version of GMime cannot handle the requested Autocrypt type, or if a parameter is missing or malformed), returns null
The returned Autocrypt headers will have it effective_date set to effective_date
if keep_incomplete isn't set, incompletes are removed
Parameters
effectiveDate | a #GDateTime object |
matchheader | the header we want to match |
addresses | a #InternetAddressList |
keepIncomplete | true if the we should include incompletes |
Returns
a new #GMimeAutocryptHeaderList object,