NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
hook.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_HOOKS_HOOK_H
24
#define MUTT_HOOKS_HOOK_H
25
26
#include "
mutt/lib.h
"
27
#include "
core/lib.h
"
28
32
struct
Hook
33
{
34
enum
CommandId
id
;
35
struct
Regex
regex
;
36
char
*
command
;
37
char
*
source_file
;
38
struct
PatternList *
pattern
;
39
struct
Expando
*
expando
;
40
TAILQ_ENTRY
(
Hook
) entries;
41
};
42
TAILQ_HEAD
(HookList,
Hook
);
43
44
void
hook_free
(
struct
Hook
**ptr);
45
struct
Hook
*
hook_new
(
void
);
46
47
#endif
/* MUTT_HOOKS_HOOK_H */
CommandId
CommandId
ID of Command.
Definition
command.h:61
lib.h
Convenience wrapper for the core headers.
hook_free
void hook_free(struct Hook **ptr)
Free a Hook.
Definition
hook.c:47
hook_new
struct Hook * hook_new(void)
Create a Hook.
Definition
hook.c:71
lib.h
Convenience wrapper for the library headers.
TAILQ_HEAD
#define TAILQ_HEAD(name, type)
Definition
queue.h:680
Expando
Parsed Expando trees.
Definition
expando.h:41
Hook
A list of user hooks.
Definition
hook.h:33
Hook::pattern
struct PatternList * pattern
Used for fcc,save,send-hook.
Definition
hook.h:38
Hook::regex
struct Regex regex
Regular expression.
Definition
hook.h:35
Hook::command
char * command
Filename, command or pattern to execute.
Definition
hook.h:36
Hook::TAILQ_ENTRY
TAILQ_ENTRY(Hook) entries
Linked list.
Hook::expando
struct Expando * expando
Used for format hooks.
Definition
hook.h:39
Hook::id
enum CommandId id
Hook CommandId, e.g. CMD_FOLDER_HOOK.
Definition
hook.h:34
Hook::source_file
char * source_file
Used for relative-directory source.
Definition
hook.h:37
Regex
Cached regular expression.
Definition
regex3.h:85