NeoMutt  2025-12-11-911-gd8d604
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
exec.h
Go to the documentation of this file.
1
22
23#ifndef MUTT_HOOKS_EXEC_H
24#define MUTT_HOOKS_EXEC_H
25
26#include "core/lib.h"
27#include "hook.h"
28
29struct Address;
30struct Buffer;
31struct Email;
32struct ListHead;
33
34void exec_account_hook (const char *url);
35void exec_folder_hook (const char *path, const char *desc);
36void exec_message_hook (struct Mailbox *m, struct Email *e, enum CommandId id);
38void exec_timeout_hook (void);
39
40void mutt_crypt_hook (struct ListHead *list, struct Address *addr);
41void mutt_default_save (struct Buffer *path, struct Email *e);
42void mutt_delete_hooks (struct HookList *hooks, enum CommandId id);
43char * mutt_find_hook (enum CommandId id, const char *pat);
44const struct Expando *mutt_idxfmt_hook (const char *name, struct Mailbox *m, struct Email *e);
45void mutt_select_fcc (struct Buffer *path, struct Email *e);
46
47#endif /* MUTT_HOOKS_EXEC_H */
CommandId
ID of Command.
Definition command.h:61
Convenience wrapper for the core headers.
void mutt_default_save(struct Buffer *path, struct Email *e)
Find the default save path for an email.
Definition exec.c:218
void exec_startup_shutdown_hook(enum CommandId id)
Execute any startup/shutdown hooks.
Definition exec.c:418
void mutt_delete_hooks(struct HookList *hooks, enum CommandId id)
Delete matching hooks.
Definition parse.c:1020
char * mutt_find_hook(enum CommandId id, const char *pat)
Find a matching hook.
Definition exec.c:115
void mutt_select_fcc(struct Buffer *path, struct Email *e)
Select the FCC path for an email.
Definition exec.c:256
void exec_folder_hook(const char *path, const char *desc)
Perform a folder hook.
Definition exec.c:64
const struct Expando * mutt_idxfmt_hook(const char *name, struct Mailbox *m, struct Email *e)
Get index-format-hook format string.
Definition exec.c:452
void exec_timeout_hook(void)
Execute any timeout hooks.
Definition exec.c:378
void exec_message_hook(struct Mailbox *m, struct Email *e, enum CommandId id)
Perform a message hook.
Definition exec.c:137
void mutt_crypt_hook(struct ListHead *list, struct Address *addr)
Find crypto hooks for an Address.
Definition exec.c:319
void exec_account_hook(const char *url)
Perform an account hook.
Definition exec.c:328
User-defined Hooks.
An email address.
Definition address.h:35
String manipulation buffer.
Definition buffer.h:36
The envelope/body of an email.
Definition email.h:39
Parsed Expando trees.
Definition expando.h:41
A mailbox.
Definition mailbox.h:81