1 /** 2 * @file 3 * Handle mailing lists 4 * 5 * @authors 6 * Copyright (C) 2020 Richard Russon <rich@flatcap.org> 7 * 8 * @copyright 9 * This program is free software: you can redistribute it and/or modify it under 10 * the terms of the GNU General Public License as published by the Free Software 11 * Foundation, either version 2 of the License, or (at your option) any later 12 * version. 13 * 14 * This program is distributed in the hope that it will be useful, but WITHOUT 15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 16 * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more 17 * details. 18 * 19 * You should have received a copy of the GNU General Public License along with 20 * this program. If not, see <http://www.gnu.org/licenses/>. 21 */ 22 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 */ 39