NeoMutt  2022-04-29-247-gc6aae8
Teaching an old dog new tricks
DOXYGEN
alternates.h
Go to the documentation of this file.
1
23#ifndef MUTT_ALTERNATES_H
24#define MUTT_ALTERNATES_H
25
26#include <stdbool.h>
27#include <stdint.h>
28#include "core/lib.h"
29
30struct Buffer;
31
40{
44};
45
46void alternates_init(void);
47void alternates_free(void);
48
49enum CommandResult parse_alternates (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
50enum CommandResult parse_unalternates(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
51
52bool mutt_alternates_match(const char *addr);
53void mutt_alternates_reset(struct Mailbox *m);
54
55#endif /* MUTT_ALTERNATES_H */
void alternates_init(void)
Set up the alternates lists.
Definition: alternates.c:60
bool mutt_alternates_match(const char *addr)
Compare an Address to the Un/Alternates lists.
Definition: alternates.c:152
void mutt_alternates_reset(struct Mailbox *m)
Clear the recipient valid flag of all emails.
Definition: alternates.c:72
void alternates_free(void)
Free the alternates lists.
Definition: alternates.c:49
NotifyAlternates
Alternates command notification types.
Definition: alternates.h:40
@ NT_ALTERN_ADD
Alternate address has been added.
Definition: alternates.h:41
@ NT_ALTERN_DELETE
Alternate address has been deleted.
Definition: alternates.h:42
@ NT_ALTERN_DELETE_ALL
All Alternate addresses have been deleted.
Definition: alternates.h:43
CommandResult
Error codes for command_t parse functions.
Definition: command.h:34
Convenience wrapper for the core headers.
enum CommandResult parse_alternates(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'alternates' command - Implements Command::parse() -.
Definition: alternates.c:89
enum CommandResult parse_unalternates(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'unalternates' command - Implements Command::parse() -.
Definition: alternates.c:125
String manipulation buffer.
Definition: buffer.h:34
char * data
Pointer to data.
Definition: buffer.h:35
A mailbox.
Definition: mailbox.h:79