GMime.InternetAddressList¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
array |
[ |
r |
The array of |
changed |
r |
||
parent_object |
r |
parent |
Class Details¶
- class GMime.InternetAddressList(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
A collection of
GMime.InternetAddressobjects.- classmethod new()¶
- Returns:
a new
GMime.InternetAddressList.- Return type:
Creates a new
GMime.InternetAddressList.
- classmethod parse(options, str)¶
- Parameters:
options (
GMime.ParserOptionsorNone) – aGMime.ParserOptionsorNonestr (
str) – a string containing internet addresses
- Returns:
a
GMime.InternetAddressListorNoneif the input string does not contain any addresses.- Return type:
Construct a list of internet addresses from the given string.
- add(ia)¶
- Parameters:
- Returns:
the index of the added
GMime.InternetAddress.- Return type:
Adds an
GMime.InternetAddressto theGMime.InternetAddressList.
- append(append)¶
- Parameters:
append (
GMime.InternetAddressList) – aGMime.InternetAddressList
Adds all of the addresses in append to self.
- append_parse(options, str)¶
- Parameters:
options (
GMime.ParserOptionsorNone) – aGMime.ParserOptionsorNonestr (
str) – a string containing internet addresses
Adds all of the addresses in str to self.
- clear()¶
Clears the list of addresses.
- contains(ia)¶
- Parameters:
- Returns:
Trueif the specifiedGMime.InternetAddressis contained within the specifiedGMime.InternetAddressListorFalseotherwise.- Return type:
Checks whether or not the specified
GMime.InternetAddressis contained within theGMime.InternetAddressList.
- encode(options, str)¶
- Parameters:
options (
GMime.FormatOptionsorNone) – aGMime.FormatOptionsorNonestr (
GLib.String) – string to write to
Writes the rfc2047-encoded rfc822 formatted addresses in self to str, folding appropriately.
- get_address(index)¶
- Parameters:
index (
int) – index ofGMime.InternetAddressto get- Returns:
the
GMime.InternetAddressat the specified index orNoneif the index is out of range.- Return type:
Gets the
GMime.InternetAddressat the specified index.
- index_of(ia)¶
- Parameters:
- Returns:
the index of the requested
GMime.InternetAddresswithin theGMime.InternetAddressListor %-1 if it is not contained within theGMime.InternetAddressList.- Return type:
Gets the index of the specified
GMime.InternetAddressinside theGMime.InternetAddressList.
- insert(index, ia)¶
- Parameters:
index (
int) – index to insert at
Inserts an
GMime.InternetAddressinto theGMime.InternetAddressListat the specified index.
- length()¶
- Returns:
the number of
GMime.InternetAddressobjects in the list.- Return type:
Gets the length of the list.
- prepend(prepend)¶
- Parameters:
prepend (
GMime.InternetAddressList) – aGMime.InternetAddressList
Inserts all of the addresses in prepend to the beginning of self.
- remove(ia)¶
- Parameters:
- Returns:
Trueif the specifiedGMime.InternetAddresswas removed orFalseotherwise.- Return type:
Removes an
GMime.InternetAddressfrom theGMime.InternetAddressList.
- remove_at(index)¶
- Parameters:
index (
int) – index to remove- Returns:
Trueif anGMime.InternetAddresswas removed orFalseotherwise.- Return type:
Removes an
GMime.InternetAddressfrom theGMime.InternetAddressListat the specified index.
- set_address(index, ia)¶
- Parameters:
index (
int) – index ofGMime.InternetAddressto set
Sets the
GMime.InternetAddressat the specified index to ia.
- to_string(options, encode)¶
- Parameters:
options (
GMime.FormatOptionsorNone) – aGMime.FormatOptionsorNoneencode (
bool) –Trueif the address should be rfc2047 encoded
- Returns:
a string containing the list of addresses in rfc822 format or
Noneif no addresses are contained in the list.- Return type:
Allocates a string buffer containing the rfc822 formatted addresses in self.