Skip to main content

This struct is defined as follows:

struct rfc2822_address {
  struct rfc2822_address *next;

  char *complete; /* the entire address */
  int len;

  /* pointers/lengths of various parts of the address */
  struct rfc2822_address_part_string {
    char *s;
    int l;
  }
  localpart,  /* localpart@domain */
  domain,   /* localpart@domain */
  user,     /* user+detail@domain */
  detail,   /* user+detail@domain */
  desc;     /* "John Smith" */

  unsigned is_group_addr:1; /* true if this address was expanded from a group */
};

struct rfc2822_address_context {
  struct rfc2822_address *addr; /* first address */
  int naddr;  /* number of addresses */
  char *freeme;
};

To use this struct, include the file address.h.

See Also

Was this page helpful?