NeoMutt  2021-02-05-329-g9e03b7
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 "mutt_commands.h"
29 
30 struct Buffer;
31 struct Mailbox;
32 
37 {
41 };
42 
43 void alternates_init(void);
44 void alternates_free(void);
45 
46 enum CommandResult parse_alternates (struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
47 enum CommandResult parse_unalternates(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err);
48 
49 bool mutt_alternates_match(const char *addr);
50 void mutt_alternates_reset(struct Mailbox *m);
51 
52 #endif /* MUTT_ALTERNATES_H */
Alternate address has been added.
Definition: alternates.h:38
CommandResult
Error codes for command_t parse functions.
Definition: mutt_commands.h:34
NotifyAlternates
Alternates command notification types.
Definition: alternates.h:36
String manipulation buffer.
Definition: buffer.h:33
Alternate address has been deleted.
Definition: alternates.h:39
void mutt_alternates_reset(struct Mailbox *m)
Clear the recipient valid flag of all emails.
Definition: alternates.c:74
bool mutt_alternates_match(const char *addr)
Compare an Address to the Un/Alternates lists.
Definition: alternates.c:152
enum CommandResult parse_unalternates(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the &#39;unalternates&#39; command - Implements Command::parse()
Definition: alternates.c:126
All Alternate addresses have been deleted.
Definition: alternates.h:40
A mailbox.
Definition: mailbox.h:81
Definitions of NeoMutt commands.
void alternates_free(void)
Free the alternates lists.
Definition: alternates.c:51
void alternates_init(void)
Set up the alternates lists.
Definition: alternates.c:62
enum CommandResult parse_alternates(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the &#39;alternates&#39; command - Implements Command::parse()
Definition: alternates.c:91