#ifndef SMTP_ADDRESS_H
#define SMTP_ADDRESS_H
#include "array-decl.h"
struct message_address;
enum smtp_address_parse_flags {
/* Strictly enforce the RFC 5321 syntax */
/* Allow an address without a domain part */
/* Allow omission of the <...> brackets in a path */
};
struct smtp_address {
const char *localpart;
const char *domain;
};
/* Not const! Never return this as a result directly! */
/*
* SMTP address parsing
*/
/* Parse address+detail@domain into address@domain and detail
using given delimiters. Returns used delimiter. */
void smtp_address_detail_parse_temp(const char *delimiters,
/*
* SMTP address construction
*/
const char *
ATTR_NULL(1);
const char *
ATTR_NULL(1);
/*
* SMTP address manipulation
*/
const struct message_address *msg_addr);
struct smtp_address *
ATTR_NULL(2);
struct smtp_address *
struct smtp_address *
const struct message_address *msg_addr);
struct smtp_address *
ATTR_NULL(1);
struct smtp_address *
struct smtp_address *
struct smtp_address *
struct smtp_address *
const struct smtp_address *address2)
const struct smtp_address *address2)
{
}
{
}
#endif