Mercurial > dovecot > core-2.2
view src/lib-mail/message-address.h @ 4635:210bb1ff0e6e HEAD
Added fill_missing parameter to message_address_parse() which specifies if
missing mailbox and domain should be returned as MISSING_MAILBOX and
MISSING_DOMAIN or just as empty strings.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Sun, 08 Oct 2006 22:22:33 +0300 |
parents | d6910d273852 |
children | 4490f823a160 |
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; }; /* 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 "". */ 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