44 #define MUTT_HOOK_NO_FLAGS 0 45 #define MUTT_FOLDER_HOOK (1 << 0) 46 #define MUTT_MBOX_HOOK (1 << 1) 47 #define MUTT_SEND_HOOK (1 << 2) 48 #define MUTT_FCC_HOOK (1 << 3) 49 #define MUTT_SAVE_HOOK (1 << 4) 50 #define MUTT_CHARSET_HOOK (1 << 5) 51 #define MUTT_ICONV_HOOK (1 << 6) 52 #define MUTT_MESSAGE_HOOK (1 << 7) 53 #define MUTT_CRYPT_HOOK (1 << 8) 54 #define MUTT_ACCOUNT_HOOK (1 << 9) 55 #define MUTT_REPLY_HOOK (1 << 10) 56 #define MUTT_SEND2_HOOK (1 << 11) 58 #define MUTT_OPEN_HOOK (1 << 12) 59 #define MUTT_APPEND_HOOK (1 << 13) 60 #define MUTT_CLOSE_HOOK (1 << 14) 62 #define MUTT_IDXFMTHOOK (1 << 15) 63 #define MUTT_TIMEOUT_HOOK (1 << 16) 64 #define MUTT_STARTUP_HOOK (1 << 17) 65 #define MUTT_SHUTDOWN_HOOK (1 << 18) 66 #define MUTT_GLOBAL_HOOK (1 << 19) enum MailboxType type
Mailbox type.
void mutt_startup_shutdown_hook(HookFlags type)
Execute any startup/shutdown hooks.
The envelope/body of an email.
void mutt_select_fcc(struct Buffer *path, struct Email *e)
Select the FCC path for an email.
CommandResult
Error codes for command_t parse functions.
void mutt_crypt_hook(struct ListHead *list, struct Address *addr)
Find crypto hooks for an Address.
void mutt_timeout_hook(void)
Execute any timeout hooks.
enum CommandResult mutt_parse_idxfmt_hook(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'index-format-hook' command - Implements Command::parse()
String manipulation buffer.
uint32_t HookFlags
Flags for mutt_parse_hook(), e.g. MUTT_FOLDER_HOOK.
void mutt_delete_hooks(HookFlags type)
Delete matching hooks.
void mutt_message_hook(struct Mailbox *m, struct Email *e, HookFlags type)
Perform a message hook.
char * name
A short name for the Mailbox.
bool C_ForceName
Config: Save outgoing mail in a folder of their name.
enum CommandResult mutt_parse_hook(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'hook' family of commands - Implements Command::parse()
void mutt_account_hook(const char *url)
Perform an account hook.
char * mutt_find_hook(HookFlags type, const char *pat)
Find a matching hook.
char * C_DefaultHook
Config: Pattern to use for hooks that only have a simple regex.
enum CommandResult mutt_parse_unhook(struct Buffer *buf, struct Buffer *s, intptr_t data, struct Buffer *err)
Parse the 'unhook' command - Implements Command::parse()
void mutt_default_save(char *path, size_t pathlen, struct Email *e)
Find the default save path for an email.
Definitions of NeoMutt commands.
void mutt_folder_hook(const char *path, const char *desc)
Perform a folder hook.
bool C_SaveName
Config: Save outgoing message to mailbox of recipient's name if it exists.
const char * mutt_idxfmt_hook(const char *name, struct Mailbox *m, struct Email *e)
Get index-format-hook format string.