gmime.internet_address_list

Module for [InternetAddressList] class

Types 3

A collection of #InternetAddress objects.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
InternetAddressList self() nothrowReturns `this`, for use in `with` statements.
InternetAddressListGidBuilder builder() static nothrowGet builder for [gmime.internet_address_list.InternetAddressList] Returns: New builder object
gmime.internet_address_list.InternetAddressList parse(gmime.parser_options.ParserOptions options, string str) static nothrowConstruct a list of internet addresses from the given string.
int add(gmime.internet_address.InternetAddress ia) nothrowAdds an #InternetAddress to the #InternetAddressList.
void append(gmime.internet_address_list.InternetAddressList append) nothrowAdds all of the addresses in append to list.
void appendParse(gmime.parser_options.ParserOptions options, string str) nothrowAdds all of the addresses in str to list.
void clear() nothrowClears the list of addresses.
bool contains(gmime.internet_address.InternetAddress ia) nothrowChecks whether or not the specified #InternetAddress is contained within the #InternetAddressList.
void encode(gmime.format_options.FormatOptions options, glib.string_.String str) nothrowWrites the rfc2047-encoded rfc822 formatted addresses in list to str, folding appropriately.
gmime.internet_address.InternetAddress getAddress(int index) nothrowGets the #InternetAddress at the specified index.
int indexOf(gmime.internet_address.InternetAddress ia) nothrowGets the index of the specified #InternetAddress inside the #InternetAddressList.
void insert(int index, gmime.internet_address.InternetAddress ia) nothrowInserts an #InternetAddress into the #InternetAddressList at the specified index.
int length() nothrowGets the length of the list. Returns: the number of #InternetAddress objects in the list.
void prepend(gmime.internet_address_list.InternetAddressList prepend) nothrowInserts all of the addresses in prepend to the beginning of list.
bool remove(gmime.internet_address.InternetAddress ia) nothrowRemoves an #InternetAddress from the #InternetAddressList.
bool removeAt(int index) nothrowRemoves an #InternetAddress from the #InternetAddressList at the specified index.
void setAddress(int index, gmime.internet_address.InternetAddress ia) nothrowSets the #InternetAddress at the specified index to ia.
string toString_(gmime.format_options.FormatOptions options, bool encode) nothrowAllocates a string buffer containing the rfc822 formatted addresses in list.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #InternetAddressList. Returns: a new #InternetAddressList.