X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/14c29200cb58d3c4a0830265f2433849781858d0..20f65ac3b82b354496b5bb469ff184ba8b0bcd96:/rfc822.h diff --git a/rfc822.h b/rfc822.h index 5cabdf3..0c48f75 100644 --- a/rfc822.h +++ b/rfc822.h @@ -19,6 +19,8 @@ #ifndef rfc822_h #define rfc822_h +#include "lib.h" + /* possible values for RFC822Error */ enum { @@ -39,25 +41,29 @@ typedef struct address_t char *mailbox; /* mailbox and host address */ int group; /* group mailbox? */ struct address_t *next; + unsigned is_idn : 1; + unsigned idn_checked : 1; } ADDRESS; +void rfc822_dequote_comment (char *s); void rfc822_free_address (ADDRESS **); void rfc822_qualify (ADDRESS *, const char *); ADDRESS *rfc822_parse_adrlist (ADDRESS *, const char *s); -ADDRESS *rfc822_cpy_adr (ADDRESS *addr); +ADDRESS *rfc822_cpy_adr (ADDRESS *addr, int); ADDRESS *rfc822_cpy_adr_real (ADDRESS *addr); -ADDRESS *rfc822_append (ADDRESS **a, ADDRESS *b); +ADDRESS *rfc822_append (ADDRESS **a, ADDRESS *b, int); int rfc822_write_address (char *, size_t, ADDRESS *, int); void rfc822_write_address_single (char *, size_t, ADDRESS *, int); void rfc822_free_address (ADDRESS **addr); void rfc822_cat (char *, size_t, const char *, const char *); int rfc822_valid_msgid (const char *msgid); +int rfc822_remove_from_adrlist (ADDRESS **a, const char *mailbox); extern int RFC822Error; extern const char *RFC822Errors[]; #define rfc822_error(x) RFC822Errors[x] -#define rfc822_new_address() calloc(1,sizeof(ADDRESS)) +#define rfc822_new_address() safe_calloc(1,sizeof(ADDRESS)) #endif /* rfc822_h */