GMime.AutocryptHeaderList¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
array |
[ |
r |
Array of |
parent_object |
r |
parent |
Class Details¶
- class GMime.AutocryptHeaderList(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A list of Autocrypt headers, typically extracted from a
GMime.Message.- classmethod new()¶
- Returns:
a new
GMime.AutocryptHeaderListobject.- Return type:
Creates a new
GMime.AutocryptHeaderListobject.
- add(header)¶
- Parameters:
header (
GMime.AutocryptHeader) – aGMime.AutocryptHeaderobject
Adds a the passed
GMime.AutocryptHeaderto the list.
- add_missing_addresses(addresses)¶
- Parameters:
addresses (
GMime.InternetAddressList) – anGMime.InternetAddressListobject- Returns:
the number of addresses added
- Return type:
Adds a new incomplete
GMime.AutocryptHeaderobject for eachGMime.InternetAddressMailboxfound in #addresses.
- get_count()¶
- Returns:
the number of available Autocrypt headers
- Return type:
See how many Autocrypt headers are in the list.
- get_header_at(index)¶
- Parameters:
index (
int) – an index into the list- Returns:
a pointer to the Nth header in the list.
- Return type:
Get the Nth header in the list (returns
Noneon error, or if index is out of bounds)
- get_header_for_address(mailbox)¶
- Parameters:
mailbox (
GMime.InternetAddressMailbox) – anGMime.InternetAddressMailboxobject- Returns:
a pointer to the header in the list which matches the requested address, or
Noneif no such header exists in the list.- Return type:
Gets the Autocrypt header corresponding to the given mailbox.
- remove_incomplete()¶
Remove all incomplete Autocrypt headers from the list.