| Top |
| GMimeInternetAddress * | g_mime_mailbox_address_new () |
| const char * | g_mime_mailbox_address_get_addrspec () |
| gboolean | g_mime_mailbox_address_set_addrspec () |
| char * | g_mime_mailbox_address_get_address () |
| char * | g_mime_mailbox_address_get_local_part () |
| char * | g_mime_mailbox_address_get_domain () |
| const char * | g_mime_mailbox_address_get_raw_domain () |
| gboolean | g_mime_mailbox_address_is_international () |
| GMimeDomainList * | g_mime_mailbox_address_get_route () |
| char * | g_mime_mailbox_address_encode_addrspec () |
| char * | g_mime_mailbox_address_decode_addrspec () |
| GMimeInternetAddress * | g_mime_mailbox_address_parse () |
GMimeInternetAddress * g_mime_mailbox_address_new (const char *name,const char *addr,GError **error);
Creates a new GMimeInternetAddress object with the specified name
and
addr
. Leading and trailing Unicode whitespace is removed from name
.
The complete addr
must be a valid addr-spec or an empty string. The
domain's IDN representation is preserved rather than decoded.
const char *
g_mime_mailbox_address_get_addrspec (GMimeMailboxAddress *mailbox);
Gets the addr-spec without changing its domain's IDN representation.
Use g_mime_mailbox_address_get_address() to encode or decode the domain.
gboolean g_mime_mailbox_address_set_addrspec (GMimeMailboxAddress *mailbox,const char *addr,GError **error);
Sets the mailbox address. Invalid input leaves the address unchanged. Empty addresses are allowed. The domain's IDN representation is preserved rather than decoded.
char * g_mime_mailbox_address_get_address (GMimeMailboxAddress *mailbox,gboolean idn_encode);
Converts the domain without modifying the mailbox. The local part and domain literals are preserved. Mapping failures preserve the stored domain.
char *
g_mime_mailbox_address_get_local_part (GMimeMailboxAddress *mailbox);
char * g_mime_mailbox_address_get_domain (GMimeMailboxAddress *mailbox,gboolean idn_encode);
Converts the domain without modifying the mailbox. Domain literals are returned unchanged. Mapping failures preserve the stored domain.
const char *
g_mime_mailbox_address_get_raw_domain (GMimeMailboxAddress *mailbox);
Gets the domain without changing its IDN representation.
Use g_mime_mailbox_address_get_domain() to encode or decode it.
gboolean
g_mime_mailbox_address_is_international
(GMimeMailboxAddress *mailbox);
GMimeDomainList *
g_mime_mailbox_address_get_route (GMimeMailboxAddress *mailbox);
char *
g_mime_mailbox_address_encode_addrspec
(const char *addr);
Normalizes an addr-spec with looser compliance and IDN-encodes its domain. Unparseable input is copied unchanged; local parts and literals are not IDN-encoded.
char *
g_mime_mailbox_address_decode_addrspec
(const char *addr);
Normalizes an addr-spec with looser compliance and decodes IDN domains. Unparseable input is copied unchanged; domain literals are preserved.
GMimeInternetAddress * g_mime_mailbox_address_parse (GMimeParserOptions *options,const char *str,gssize length,GError **error);