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 <stdio.h>
31#include "mutt/lib.h"
32#include "core/lib.h"
33#include "my_header.h"
34
38const struct Command SendCommands[] = {
39 // clang-format off
40 { "my-header", CMD_MY_HEADER, parse_my_header,
41 N_("Add a custom header to outgoing messages"),
42 N_("my-header <string>"),
43 "configuration.html#my-header" },
44 { "unmy-header", CMD_UNMY_HEADER, parse_unmy_header,
45 N_("Remove a header previously added with `my-header`"),
46 N_("unmy-header { * | <field> ... }"),
47 "configuration.html#my-header" },
48
49 // Deprecated
50 { "my_hdr", CMD_NONE, NULL, "my-header", NULL, NULL, CF_SYNONYM },
51 { "unmy_hdr", CMD_NONE, NULL, "unmy-header", 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_MY_HEADER
:my-header
Definition command.h:97
@ CMD_NONE
No Command.
Definition command.h:59
@ CMD_UNMY_HEADER
:unmy-header
Definition command.h:140
Convenience wrapper for the core headers.
enum CommandResult parse_my_header(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'my-header' command - Implements Command::parse() -.
Definition my_header.c:52
enum CommandResult parse_unmy_header(const struct Command *cmd, struct Buffer *line, const struct ParseContext *pc, struct ParseError *pe)
Parse the 'unmy-header' command - Implements Command::parse() -.
Definition my_header.c:106
Convenience wrapper for the library headers.
#define N_(a)
Definition message.h:32
Parse My-header Commands.
const struct Command SendCommands[]
Send Commands.
Definition commands.c:38