NeoMutt  2025-12-11-694-ga89709
Teaching an old dog new tricks
DOXYGEN
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
32struct Hook
33{
35 struct Regex regex;
36 char *command;
38 struct PatternList *pattern;
39 struct Expando *expando;
40 TAILQ_ENTRY(Hook) entries;
41};
42TAILQ_HEAD(HookList, Hook);
43
44void hook_free(struct Hook **ptr);
45struct Hook *hook_new (void);
46
47#endif /* MUTT_HOOKS_HOOK_H */
CommandId
ID of Command.
Definition command.h:58
Convenience wrapper for the core headers.
void hook_free(struct Hook **ptr)
Free a Hook.
Definition hook.c:47
struct Hook * hook_new(void)
Create a Hook.
Definition hook.c:71
Convenience wrapper for the library headers.
#define TAILQ_HEAD(name, type)
Definition queue.h:680
Parsed Expando trees.
Definition expando.h:41
A list of user hooks.
Definition hook.h:33
struct PatternList * pattern
Used for fcc,save,send-hook.
Definition hook.h:38
struct Regex regex
Regular expression.
Definition hook.h:35
char * command
Filename, command or pattern to execute.
Definition hook.h:36
TAILQ_ENTRY(Hook) entries
Linked list.
struct Expando * expando
Used for format hooks.
Definition hook.h:39
enum CommandId id
Hook CommandId, e.g. CMD_FOLDER_HOOK.
Definition hook.h:34
char * source_file
Used for relative-directory source.
Definition hook.h:37
Cached regular expression.
Definition regex3.h:85