NeoMutt  2020-11-20
Teaching an old dog new tricks
DOXYGEN
maillist.h
Go to the documentation of this file.
1 
23 #ifndef MUTT_MAILLIST_H
24 #define MUTT_MAILLIST_H
25 
26 #include <stddef.h>
27 #include <stdbool.h>
28 
29 struct Address;
30 struct AddressList;
31 
32 bool check_for_mailing_list (struct AddressList *al, const char *pfx, char *buf, int buflen);
33 bool check_for_mailing_list_addr(struct AddressList *al, char *buf, int buflen);
34 bool first_mailing_list (char *buf, size_t buflen, struct AddressList *al);
35 bool mutt_is_mail_list (const struct Address *addr);
36 bool mutt_is_subscribed_list (const struct Address *addr);
37 
38 #endif /* MUTT_MAILLIST_H */
bool check_for_mailing_list(struct AddressList *al, const char *pfx, char *buf, int buflen)
Search list of addresses for a mailing list.
Definition: maillist.c:79
bool check_for_mailing_list_addr(struct AddressList *al, char *buf, int buflen)
Check an address list for a mailing list.
Definition: maillist.c:103
An email address.
Definition: address.h:34
bool first_mailing_list(char *buf, size_t buflen, struct AddressList *al)
Get the first mailing list in the list of addresses.
Definition: maillist.c:125
bool mutt_is_subscribed_list(const struct Address *addr)
Is this the email address of a user-subscribed mailing list? - Implements addr_predicate_t.
Definition: maillist.c:57
bool mutt_is_mail_list(const struct Address *addr)
Is this the email address of a mailing list? - Implements addr_predicate_t.
Definition: maillist.c:45