X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/19304f7c526fbe36ba0db2fb80bcaf3bd974d81d..73c09bc56e79605cf421a31c7e36958422055a20:/rfc822.h diff --git a/rfc822.h b/rfc822.h index 65b7a5c..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 { @@ -44,22 +46,24 @@ typedef struct address_t } 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 */