NeoMutt  2021-10-29-225-gb9986f
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 
30 struct Buffer;
31 
38 {
42 };
43 
44 void alternates_init(void);
45 void alternates_free(void);
46 
47 enum CommandResult parse_alternates (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
48 enum CommandResult parse_unalternates(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
49 
50 bool mutt_alternates_match(const char *addr);
51 void mutt_alternates_reset(struct Mailbox *m);
52 
53 #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:38
@ NT_ALTERN_ADD
Alternate address has been added.
Definition: alternates.h:39
@ NT_ALTERN_DELETE
Alternate address has been deleted.
Definition: alternates.h:40
@ NT_ALTERN_DELETE_ALL
All Alternate addresses have been deleted.
Definition: alternates.h:41
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:82