/usr/include/dovecot/message-address.h is in dovecot-dev 1:2.2.9-1ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 | #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;
/* display-name */
const char *name;
/* route string contains the @ prefix */
const char *route;
/* local-part */
const char *mailbox;
const char *domain;
/* there were errors when parsing this address */
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);
/* Returns TRUE if header is known to be an address */
bool message_header_is_address(const char *hdr_name);
#endif
|