Mercurial > dovecot > original-hg > dovecot-1.2
view src/lib-mail/message-address.h @ 8962:a2a28c52e951 HEAD
THREAD REFS still might have returned one (0) at the beginning.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 16 Apr 2009 22:21:36 -0400 |
parents | a1f6c93afbc2 |
children | 228100f53e88 |
line wrap: on
line source
#ifndef MESSAGE_ADDRESS_H #define MESSAGE_ADDRESS_H /* group: ... ; will be stored like: {name = NULL, NULL, "group", NULL}, ..., {NULL, NULL, NULL, NULL} */ struct message_address { struct message_address *next; const char *name, *route, *mailbox, *domain; bool invalid_syntax; }; /* Parse message addresses from given data. If fill_missing is TRUE, missing mailbox and domain are set to MISSING_MAILBOX and MISSING_DOMAIN strings. Otherwise they're set to "". Note that giving an empty string will return NULL since there are no addresses. */ struct message_address * message_address_parse(pool_t pool, const unsigned char *data, size_t size, unsigned int max_addresses, bool fill_missing); void message_address_write(string_t *str, const struct message_address *addr); #endif