GMime.AutocryptHeaderList

g GMime.AutocryptHeaderList GMime.AutocryptHeaderList GObject.Object GObject.Object GObject.Object->GMime.AutocryptHeaderList

Subclasses:

None

Methods

Inherited:

GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

new ()

add (header)

add_missing_addresses (addresses)

get_count ()

get_header_at (index)

get_header_for_address (mailbox)

remove_incomplete ()

Virtual Methods

Inherited:

GObject.Object (7)

Properties

None

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

array

[object]

r

Array of GMime.AutocryptHeader items.

parent_object

GObject.Object

r

parent GObject.Object

Class Details

class GMime.AutocryptHeaderList(**kwargs)
Bases:

GObject.Object

Abstract:

No

Structure:

GMime.AutocryptHeaderListClass

A list of Autocrypt headers, typically extracted from a GMime.Message.

classmethod new()
Returns:

a new GMime.AutocryptHeaderList object.

Return type:

GMime.AutocryptHeaderList

Creates a new GMime.AutocryptHeaderList object.

add(header)
Parameters:

header (GMime.AutocryptHeader) – a GMime.AutocryptHeader object

Adds a the passed GMime.AutocryptHeader to the list.

add_missing_addresses(addresses)
Parameters:

addresses (GMime.InternetAddressList) – an GMime.InternetAddressList object

Returns:

the number of addresses added

Return type:

int

Adds a new incomplete GMime.AutocryptHeader object for each GMime.InternetAddressMailbox found in #addresses.

get_count()
Returns:

the number of available Autocrypt headers

Return type:

int

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:

GMime.AutocryptHeader

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) – an GMime.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:

GMime.AutocryptHeader

Gets the Autocrypt header corresponding to the given mailbox.

remove_incomplete()

Remove all incomplete Autocrypt headers from the list.