NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
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
38const 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_NO_FLAGS },
54 // clang-format on
55};
#define CF_SYNONYM
Command is a synonym for another command.
Definition command.h:49
#define CF_NO_FLAGS
No flags are set.
Definition command.h:48
@ CMD_UNSUBJECT_REGEX
:unsubject-regex
Definition command.h:144
@ CMD_NONE
No Command.
Definition command.h:59
@ CMD_SUBJECT_REGEX
:subject-regex
Definition command.h:116
Convenience wrapper for the core headers.
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
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
const struct Command IndexCommands[]
Index Commands.
Definition commands.c:38
Convenience wrapper for the library headers.
#define N_(a)
Definition message.h:32
Parse Subject-regex Commands.