Alternate address handling. More...
#include "config.h"
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include "mutt/lib.h"
#include "address/lib.h"
#include "email/lib.h"
#include "core/lib.h"
#include "alternates.h"
#include "parse/lib.h"
#include "commands.h"
Go to the source code of this file.
Functions | |
void | alternates_free (void) |
Free the alternates lists. More... | |
void | alternates_init (void) |
Set up the alternates lists. More... | |
void | mutt_alternates_reset (struct Mailbox *m) |
Clear the recipient valid flag of all emails. More... | |
enum CommandResult | parse_alternates (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
Parse the 'alternates' command - Implements Command::parse() -. More... | |
enum CommandResult | parse_unalternates (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err) |
Parse the 'unalternates' command - Implements Command::parse() -. More... | |
bool | mutt_alternates_match (const char *addr) |
Compare an Address to the Un/Alternates lists. More... | |
Variables | |
struct RegexList | Alternates = STAILQ_HEAD_INITIALIZER(Alternates) |
List of regexes to match the user's alternate email addresses. More... | |
struct RegexList | UnAlternates = STAILQ_HEAD_INITIALIZER(UnAlternates) |
List of regexes to exclude false matches in Alternates. More... | |
static struct Notify * | AlternatesNotify = NULL |
Alternate address handling.
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 alternates.c.
void alternates_free | ( | void | ) |
Free the alternates lists.
Definition at line 48 of file alternates.c.
void alternates_init | ( | void | ) |
Set up the alternates lists.
Definition at line 59 of file alternates.c.
void mutt_alternates_reset | ( | struct Mailbox * | m | ) |
Clear the recipient valid flag of all emails.
Definition at line 71 of file alternates.c.
bool mutt_alternates_match | ( | const char * | addr | ) |
Compare an Address to the Un/Alternates lists.
addr | Address to check |
true | Address matches |
Definition at line 151 of file alternates.c.
struct RegexList Alternates = STAILQ_HEAD_INITIALIZER(Alternates) |
List of regexes to match the user's alternate email addresses.
Definition at line 41 of file alternates.c.
struct RegexList UnAlternates = STAILQ_HEAD_INITIALIZER(UnAlternates) |
List of regexes to exclude false matches in Alternates.
Definition at line 42 of file alternates.c.
|
static |
Definition at line 43 of file alternates.c.