X-Git-Url: https://git.llucax.com/software/mutt-debian.git/blobdiff_plain/647ac5444d022537a1f0854dd309494c511dfe07..84b9ea1689a8189d41ea4a821a1fd6cc446b9332:/rfc822.h diff --git a/rfc822.h b/rfc822.h index b645cc2..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,6 +46,7 @@ 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); @@ -55,11 +58,12 @@ 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 */