NeoMutt
2025-12-11-1040-g5187ba
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
commands.c
Go to the documentation of this file.
1
22
28
29
#include "config.h"
30
#include <stddef.h>
31
#include "
mutt/lib.h
"
32
#include "
core/lib.h
"
33
#include "
subjectrx.h
"
34
38
const
struct
Command
IndexCommands
[] = {
39
// clang-format off
40
{
"subject-regex"
,
CMD_SUBJECT_REGEX
,
parse_subjectrx_list
,
41
N_
(
"Apply regex-based rewriting to message subjects"
),
42
N_
(
"subject-regex <regex> <replacement>"
),
43
"advancedusage.html#display-munging"
},
44
{
"unsubject-regex"
,
CMD_UNSUBJECT_REGEX
,
parse_unsubjectrx_list
,
45
N_
(
"Remove subject-rewriting rules"
),
46
N_
(
"unsubject-regex { * | <regex> }"
),
47
"advancedusage.html#display-munging"
},
48
49
// Deprecated
50
{
"subjectrx"
,
CMD_NONE
, NULL,
"subject-regex"
, NULL, NULL,
CF_SYNONYM
},
51
{
"unsubjectrx"
,
CMD_NONE
, NULL,
"unsubject-regex"
, NULL, NULL,
CF_SYNONYM
},
52
53
{ NULL,
CMD_NONE
, NULL, NULL, NULL, NULL,
CF_NONE
},
54
// clang-format on
55
};
CF_SYNONYM
@ CF_SYNONYM
Command is a synonym for another command.
Definition
command.h:50
CF_NONE
@ CF_NONE
No flags are set.
Definition
command.h:49
CMD_UNSUBJECT_REGEX
@ CMD_UNSUBJECT_REGEX
:unsubject-regex
Definition
command.h:147
CMD_NONE
@ CMD_NONE
No Command.
Definition
command.h:62
CMD_SUBJECT_REGEX
@ CMD_SUBJECT_REGEX
:subject-regex
Definition
command.h:119
lib.h
Convenience wrapper for the core headers.
parse_unsubjectrx_list
enum CommandResult parse_unsubjectrx_list(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'unsubject-regex' command - Implements Command::parse() -.
Definition
subjectrx.c:224
parse_subjectrx_list
enum CommandResult parse_subjectrx_list(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'subject-regex' command - Implements Command::parse() -.
Definition
subjectrx.c:192
IndexCommands
const struct Command IndexCommands[]
Index Commands.
Definition
commands.c:38
lib.h
Convenience wrapper for the library headers.
N_
#define N_(a)
Definition
message.h:32
Command
Definition
command.h:161
subjectrx.h
Parse Subject-regex Commands.