void alternates_cleanup(void)
Free the alternates lists.
void alternates_init(void)
Set up the alternates lists.
static struct RegexList Alternates
List of regexes to match the user's alternate email addresses.
bool mutt_alternates_match(const char *addr)
Compare an Address to the Un/Alternates lists.
static struct Notify * AlternatesNotify
Notifications: NotifyAlternates.
void mutt_alternates_reset(struct MailboxView *mv)
Clear the recipient valid flag of all emails.
static struct RegexList UnAlternates
List of regexes to exclude false matches in Alternates.
Alternate address handling.
@ NT_ALTERN_ADD
Alternate address has been added.
@ NT_ALTERN_DELETE
Alternate address has been deleted.
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
static const char * buf_string(const struct Buffer *buf)
Convert a buffer to a const char * "string".
CommandResult
Error codes for command_t parse functions.
@ MUTT_CMD_SUCCESS
Success: Command worked.
@ MUTT_CMD_ERROR
Error: Can't help the user.
@ MUTT_CMD_WARNING
Warning: Help given to the user.
int parse_grouplist(struct GroupList *gl, struct Buffer *token, struct Buffer *line, struct Buffer *err, struct HashTable *groups)
Parse a group context.
Functions to parse commands in a config file.
Convenience wrapper for the core headers.
Structs that make up an email.
int grouplist_add_regex(struct GroupList *gl, const char *str, uint16_t flags, struct Buffer *err)
Add matching Addresses to a GroupList.
void grouplist_destroy(struct GroupList *gl)
Free a GroupList.
enum CommandResult parse_alternates(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'alternates' command - Implements Command::parse() -.
enum CommandResult parse_unalternates(const struct Command *cmd, struct Buffer *line, struct Buffer *err)
Parse the 'unalternates' command - Implements Command::parse() -.
#define mutt_debug(LEVEL,...)
@ LL_DEBUG5
Log at debug level 5.
@ LL_NOTIFY
Log of notifications.
Convenience wrapper for the library headers.
struct Notify * notify_new(void)
Create a new notifications handler.
bool notify_send(struct Notify *notify, enum NotifyType event_type, int event_subtype, void *event_data)
Send out a notification message.
void notify_set_parent(struct Notify *notify, struct Notify *parent)
Set the parent notification handler.
void notify_free(struct Notify **ptr)
Free a notification handler.
void mutt_regexlist_free(struct RegexList *rl)
Free a RegexList object.
int mutt_regexlist_add(struct RegexList *rl, const char *str, uint16_t flags, struct Buffer *err)
Compile a regex string and add it to a list.
int mutt_regexlist_remove(struct RegexList *rl, const char *str)
Remove a Regex from a list.
bool mutt_regexlist_match(struct RegexList *rl, const char *str)
Does a string match any Regex in the list?
bool mutt_str_equal(const char *a, const char *b)
Compare two strings.
@ NT_ALTERN
Alternates command changed, NotifyAlternates.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
#define STAILQ_HEAD_INITIALIZER(head)
String manipulation buffer.
const char * name
Name of the command.
The envelope/body of an email.
bool recip_valid
Is_recipient is valid.
struct Mailbox * mailbox
Current Mailbox.
int msg_count
Total number of messages.
struct Email ** emails
Array of Emails.
Container for Accounts, Notifications.
struct Notify * notify
Notifications handler.
struct HashTable * groups
Hash Table: "group-name" -> Group.