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

Send Commands. More...

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

Go to the source code of this file.

Variables

const struct Command SendCommands []
 Send Commands.
 

Detailed Description

Send 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

◆ SendCommands

const struct Command SendCommands[]
Initial value:
= {
{ "my-header", CMD_MY_HEADER, parse_my_header,
N_("Add a custom header to outgoing messages"),
N_("my-header <string>"),
"configuration.html#my-header" },
N_("Remove a header previously added with `my-header`"),
N_("unmy-header { * | <field> ... }"),
"configuration.html#my-header" },
{ "my_hdr", CMD_NONE, NULL, "my-header", NULL, NULL, CF_SYNONYM },
{ "unmy_hdr", CMD_NONE, NULL, "unmy-header", 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_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
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
#define N_(a)
Definition message.h:32

Send Commands.

Definition at line 38 of file commands.c.

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