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.AutocryptHeaderList
object.- Return type:
Creates a new
GMime.AutocryptHeaderList
object.
- add(header)¶
- Parameters:
header (
GMime.AutocryptHeader
) – aGMime.AutocryptHeader
object
Adds a the passed
GMime.AutocryptHeader
to the list.
- add_missing_addresses(addresses)¶
- Parameters:
addresses (
GMime.InternetAddressList
) – anGMime.InternetAddressList
object- Returns:
the number of addresses added
- Return type:
Adds a new incomplete
GMime.AutocryptHeader
object for eachGMime.InternetAddressMailbox
found 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
None
on error, or if index is out of bounds)
- get_header_for_address(mailbox)¶
- Parameters:
mailbox (
GMime.InternetAddressMailbox
) – anGMime.InternetAddressMailbox
object- Returns:
a pointer to the header in the list which matches the requested address, or
None
if 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.