InternetAddress
Object Hierarchy:
Description:
[
CCode ( type_id =
"camel_internet_address_get_type ()" ) ]
public class InternetAddress :
Address
RFC 822 internet address handling.
InternetAddress is a Address subclass for handling RFC 822
internet mail addresses. Each address consists of an optional human-readable name part and a required addr-spec part.
Addresses are stored in a decoded, split format internally, and can be converted to and from their encoded (RFC 2047) wire representation
via encode and
decode respectively.
Address groups as defined by RFC 822 are not supported; they are flattened into the base address list during decoding.
Content:
Static methods:
Creation methods:
Methods:
- public bool @get (int index, out unowned string? namep, out unowned string? addressp)
Get the address at index.
- public int add (string name, string address)
Add a new internet address to this.
- public void ensure_ascii_domains ()
Ensures that all email address' domains will be ASCII encoded, which
means that any non-ASCII letters will be properly encoded.
- public int find_address (string address, out unowned string? namep)
Find an address by address.
- public int find_name (string name, out unowned string? addressp)
Find address by real name.
- public bool sanitize_ascii_domain ()
Checks the addresses in this for any
suspicious characters in the domain name and coverts those domains into their representation.
Inherited Members:
All known members inherited from class Camel.Address
All known members inherited from class GLib.Object