Handle mailing lists. More...
#include <stdbool.h>
#include <stddef.h>
Go to the source code of this file.
Functions | |
bool | check_for_mailing_list (struct AddressList *al, const char *pfx, char *buf, int buflen) |
Search list of addresses for a mailing list. | |
bool | check_for_mailing_list_addr (struct AddressList *al, char *buf, int buflen) |
Check an address list for a mailing list. | |
bool | first_mailing_list (char *buf, size_t buflen, struct AddressList *al) |
Get the first mailing list in the list of addresses. | |
bool | mutt_is_mail_list (const struct Address *addr) |
Is this the email address of a mailing list? - Implements addr_predicate_t -. | |
bool | mutt_is_subscribed_list (const struct Address *addr) |
Is this the email address of a user-subscribed mailing list? - Implements addr_predicate_t -. | |
Handle mailing lists.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file 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.
1 | Mailing list found |
0 | No list found |
Search for a mailing list in the list of addresses pointed to by addr. If one is found, print pfx and the name of the list into buf.
Definition at line 78 of file maillist.c.
bool check_for_mailing_list_addr | ( | struct AddressList * | al, |
char * | buf, | ||
int | buflen | ||
) |
Check an address list for a mailing list.
al | AddressList |
buf | Buffer for the result |
buflen | Length of buffer |
true | Mailing list found |
If one is found, print the address of the list into buf.
Definition at line 102 of file maillist.c.
bool first_mailing_list | ( | char * | buf, |
size_t | buflen, | ||
struct AddressList * | al | ||
) |
Get the first mailing list in the list of addresses.
buf | Buffer for the result |
buflen | Length of buffer |
al | AddressList |
true | A mailing list was found |
Definition at line 124 of file maillist.c.