NeoMutt  2025-12-11-435-g4ac674
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
commands.c File Reference

Index commands. More...

#include "config.h"
#include <stddef.h>
#include "mutt/lib.h"
#include "core/lib.h"
#include "subjectrx.h"
+ Include dependency graph for commands.c:

Go to the source code of this file.

Variables

const struct Command IndexCommands []
 Index Commands.
 

Detailed Description

Index commands.

Authors
  • Richard Russon

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Definition in file commands.c.

Variable Documentation

◆ IndexCommands

const struct Command IndexCommands[]
Initial value:
= {
N_("Apply regex-based rewriting to message subjects"),
N_("subject-regex <regex> <replacement>"),
"advancedusage.html#display-munging" },
N_("Remove subject-rewriting rules"),
N_("unsubject-regex { * | <regex> }"),
"advancedusage.html#display-munging" },
{ "subjectrx", CMD_NONE, NULL, "subject-regex", NULL, NULL, CF_SYNONYM },
{ "unsubjectrx", CMD_NONE, NULL, "unsubject-regex", NULL, NULL, CF_SYNONYM },
{ NULL, CMD_NONE, NULL, NULL, NULL, NULL, CF_NO_FLAGS },
}
#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
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
#define N_(a)
Definition message.h:32

Index Commands.

Definition at line 38 of file commands.c.

38 {
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};