2 * Copyright notice from original mutt:
3 * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
5 * This file is part of mutt-ng, see http://www.muttng.org/.
6 * It's licensed under the GNU General Public License,
7 * please see the file GPL in the top level source directory.
13 /* possible values for RFC822Error */
23 typedef struct address_t {
24 char *personal; /* real name of address */
25 char *mailbox; /* mailbox and host address */
26 int group; /* group mailbox? */
27 struct address_t *next;
30 void rfc822_free_address (ADDRESS **);
31 void rfc822_qualify (ADDRESS *, const char *);
32 ADDRESS *rfc822_parse_adrlist (ADDRESS *, const char *s);
33 ADDRESS *rfc822_cpy_adr (ADDRESS * addr);
34 ADDRESS *rfc822_cpy_adr_real (ADDRESS * addr);
35 ADDRESS *rfc822_append (ADDRESS ** a, ADDRESS * b);
36 void rfc822_write_address (char *, size_t, ADDRESS *, int);
37 void rfc822_write_address_single (char *, size_t, ADDRESS *, int);
38 void rfc822_free_address (ADDRESS ** addr);
39 void rfc822_cat (char *, size_t, const char *, const char *);
41 extern int RFC822Error;
42 extern const char *RFC822Errors[];
44 #define rfc822_error(x) RFC822Errors[x]
45 #define rfc822_new_address() calloc(1,sizeof(ADDRESS))