NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
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
28
struct
Address
;
29
struct
Buffer
;
30
struct
Email
;
31
struct
Hook
;
32
struct
HookList;
33
struct
ListHead;
34
35
void
exec_account_hook
(
const
char
*url);
36
void
exec_folder_hook
(
const
char
*path,
const
char
*desc);
37
void
exec_message_hook
(
struct
Mailbox
*m,
struct
Email
*e,
enum
CommandId
id
);
38
void
exec_startup_shutdown_hook
(
enum
CommandId
id
);
39
void
exec_timeout_hook
(
void
);
40
41
void
mutt_crypt_hook
(
struct
ListHead *list,
struct
Address
*addr);
42
void
mutt_default_save
(
struct
Buffer
*path,
struct
Email
*e);
43
void
mutt_delete_hooks
(
struct
HookList *hooks,
enum
CommandId
id
);
44
struct
Hook
*
mutt_find_hook
(
enum
CommandId
id
,
const
char
*pat);
45
const
struct
Expando
*
mutt_idxfmt_hook
(
const
char
*name,
struct
Mailbox
*m,
struct
Email
*e);
46
void
mutt_select_fcc
(
struct
Buffer
*path,
struct
Email
*e);
47
48
#endif
/* MUTT_HOOKS_EXEC_H */
CommandId
CommandId
ID of Command.
Definition
command.h:61
lib.h
Convenience wrapper for the core headers.
mutt_default_save
void mutt_default_save(struct Buffer *path, struct Email *e)
Find the default save path for an email.
Definition
exec.c:218
exec_startup_shutdown_hook
void exec_startup_shutdown_hook(enum CommandId id)
Execute any startup/shutdown hooks.
Definition
exec.c:418
mutt_delete_hooks
void mutt_delete_hooks(struct HookList *hooks, enum CommandId id)
Delete matching hooks.
Definition
parse.c:1032
mutt_select_fcc
void mutt_select_fcc(struct Buffer *path, struct Email *e)
Select the FCC path for an email.
Definition
exec.c:256
mutt_find_hook
struct Hook * mutt_find_hook(enum CommandId id, const char *pat)
Find a matching hook.
Definition
exec.c:115
exec_folder_hook
void exec_folder_hook(const char *path, const char *desc)
Perform a folder hook.
Definition
exec.c:64
mutt_idxfmt_hook
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
exec_timeout_hook
void exec_timeout_hook(void)
Execute any timeout hooks.
Definition
exec.c:378
exec_message_hook
void exec_message_hook(struct Mailbox *m, struct Email *e, enum CommandId id)
Perform a message hook.
Definition
exec.c:137
mutt_crypt_hook
void mutt_crypt_hook(struct ListHead *list, struct Address *addr)
Find crypto hooks for an Address.
Definition
exec.c:319
exec_account_hook
void exec_account_hook(const char *url)
Perform an account hook.
Definition
exec.c:328
Address
An email address.
Definition
address.h:35
Buffer
String manipulation buffer.
Definition
buffer.h:36
Email
The envelope/body of an email.
Definition
email.h:39
Expando
Parsed Expando trees.
Definition
expando.h:41
Hook
A list of user hooks.
Definition
hook.h:33
Mailbox
A mailbox.
Definition
mailbox.h:81