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 <stdio.h>
31
#include "
mutt/lib.h
"
32
#include "
core/lib.h
"
33
#include "
my_header.h
"
34
38
const
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_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_MY_HEADER
@ CMD_MY_HEADER
:my-header
Definition
command.h:100
CMD_NONE
@ CMD_NONE
No Command.
Definition
command.h:62
CMD_UNMY_HEADER
@ CMD_UNMY_HEADER
:unmy-header
Definition
command.h:143
lib.h
Convenience wrapper for the core headers.
parse_my_header
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
parse_unmy_header
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
lib.h
Convenience wrapper for the library headers.
N_
#define N_(a)
Definition
message.h:32
my_header.h
Parse My-header Commands.
SendCommands
const struct Command SendCommands[]
Send Commands.
Definition
commands.c:38
Command
Definition
command.h:161