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.InternetAddress
objects.- classmethod new()¶
- Returns:
a new
GMime.InternetAddressList
.- Return type:
Creates a new
GMime.InternetAddressList
.
- classmethod parse(options, str)¶
- Parameters:
options (
GMime.ParserOptions
orNone
) – aGMime.ParserOptions
orNone
str (
str
) – a string containing internet addresses
- Returns:
a
GMime.InternetAddressList
orNone
if 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.InternetAddress
to 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.ParserOptions
orNone
) – aGMime.ParserOptions
orNone
str (
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:
True
if the specifiedGMime.InternetAddress
is contained within the specifiedGMime.InternetAddressList
orFalse
otherwise.- Return type:
Checks whether or not the specified
GMime.InternetAddress
is contained within theGMime.InternetAddressList
.
- encode(options, str)¶
- Parameters:
options (
GMime.FormatOptions
orNone
) – aGMime.FormatOptions
orNone
str (
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.InternetAddress
to get- Returns:
the
GMime.InternetAddress
at the specified index orNone
if the index is out of range.- Return type:
Gets the
GMime.InternetAddress
at the specified index.
- index_of(ia)¶
- Parameters:
- Returns:
the index of the requested
GMime.InternetAddress
within theGMime.InternetAddressList
or %-1 if it is not contained within theGMime.InternetAddressList
.- Return type:
Gets the index of the specified
GMime.InternetAddress
inside theGMime.InternetAddressList
.
- insert(index, ia)¶
- Parameters:
index (
int
) – index to insert at
Inserts an
GMime.InternetAddress
into theGMime.InternetAddressList
at the specified index.
- length()¶
- Returns:
the number of
GMime.InternetAddress
objects 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:
True
if the specifiedGMime.InternetAddress
was removed orFalse
otherwise.- Return type:
Removes an
GMime.InternetAddress
from theGMime.InternetAddressList
.
- remove_at(index)¶
- Parameters:
index (
int
) – index to remove- Returns:
True
if anGMime.InternetAddress
was removed orFalse
otherwise.- Return type:
Removes an
GMime.InternetAddress
from theGMime.InternetAddressList
at the specified index.
- set_address(index, ia)¶
- Parameters:
index (
int
) – index ofGMime.InternetAddress
to set
Sets the
GMime.InternetAddress
at the specified index to ia.
- to_string(options, encode)¶
- Parameters:
options (
GMime.FormatOptions
orNone
) – aGMime.FormatOptions
orNone
encode (
bool
) –True
if the address should be rfc2047 encoded
- Returns:
a string containing the list of addresses in rfc822 format or
None
if no addresses are contained in the list.- Return type:
Allocates a string buffer containing the rfc822 formatted addresses in self.