Blame view

mail/table.c 4.48 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/* GNU mailutils - a suite of utilities for electronic mail
   Copyright (C) 1999 Free Software Foundation, Inc.

   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
   the Free Software Foundation; either version 2, or (at your option)
   any later version.

   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, write to the Free Software
   Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */

#include "mail.h"

Jakob Kaivo authored
20
const struct mail_command_entry mail_command_table[] = {
21 22 23
  { "a",	"alias",	mail_alias,
				"a[lias] [alias [address...]]" },
  { "alt",	"alternates",	mail_alt,	"alt[ernates] name..." },
24
  { "C",	"Copy",		mail_copy,	"C[opy] [msglist]" },
25 26
  { "cd",	"cd",		mail_cd,	"cd [directory]" },
  { "ch",	"chdir",	mail_cd,	"ch[dir] directory" },
27
  { "c",	"copy",		mail_copy,	"c[opy] [[msglist] file]" },
28 29 30 31 32 33 34
  { "d",	"delete",	mail_delete,	"d[elete] [msglist]" },
  { "di",	"discard",	mail_discard,
				"di[scard] [header-field...]" },
  { "dp",	"dp",		mail_dp,	"dp [msglist]" },
  { "dt",	"dt",		mail_dp,	"dt [msglist]" },
  { "ec",	"echo",		mail_echo,	"ec[ho] string ..." },
  { "e",	"edit",		mail_edit,	"e[dit] [msglist]" },
35 36
  { "el",	"else",		mail_if,	"el[se]" }, /* FIXME */
  { "en",	"endif",	mail_if,	"en[dif]" }, /* FIXME */
37
  { "ex",	"exit",		mail_exit,	"ex[it]" },
38
  { "F",	"Followup",	mail_followup,	"F[ollowup] [msglist]" },
39 40 41
  { "fi",	"file",		mail_file,	"fi[le] [file]" },
  { "fold",	"folder",	mail_file,	"fold[er] [file]" },
  { "folders",	"folders",	mail_folders,	"folders" },
42
  { "fo",	"followup",	mail_followup,	"fo[llowup] [msglist]" },
43
  { "f",	"from",		mail_from,	"f[rom] [msglist]" },
44 45
  { "g",	"group",	mail_alias,
				"g[roup] [alias [address...]]" },
46 47
  { "h",	"headers",	mail_headers,	"h[eaders] [msglist]" },
  { "hel",	"help",		mail_help,	"hel[p] [command...]" },
48
  { "ho",	"hold",		mail_hold,	"ho[ld] [msglist]" },
49 50
  { "i",	"if",		mail_if,	"i[f] s|r" }, /* FIXME */
  { "ig",	"ignore",	mail_discard,	"ig[nore] [header-field...]" },
51
  { "l",	"list",		mail_list,	"l[ist]" },
52
  { "m",	"mail",		mail_send,	"m[ail] [address...]" },
53 54
  { "mb",	"mbox",		mail_mbox,	"mb[ox] [msglist]" },
  { "n",	"next",		mail_next,	"n[ext] [message]" },
55
  { "P",	"Print",	mail_print,	"P[rint] [msglist]" },
56
  { "pi",	"pipe",		mail_pipe,	"pi[pe] [[msglist] command]" },
57
  { "pre",	"preserve",	mail_hold,	"pre[serve] [msglist]" },
58
  { "prev",	"previous",	mail_previous,  "prev[ious] [message]" },
59
  { "p",	"print",	mail_print,	"p[rint] [msglist]" },
60
  { "q",	"quit",		mail_quit,	"q[uit]" },
61 62
  { "R",	"Reply",	mail_reply,	"R[eply] [msglist]" },
  { "R",	"Respond",	mail_reply,	"R[espond] [msglist]" },
63 64
  { "r",	"reply",	mail_reply,	"r[eply] [msglist]" },
  { "r",	"respond",	mail_reply,	"r[espond] [msglist]" },
65
  { "ret",	"retain",	mail_retain,	"ret[ain] [header-field]" },
66
  { "S",	"Save",		mail_save,	"S[ave] [msglist]" },
67
  { "s",	"save",		mail_save,	"s[ave] [[msglist] file]" },
68 69
  { "se",	"set",		mail_set,
		"se[t] [name[=[string]]...] [name=number...] [noname...]" },
70
  { "sh",	"shell",	mail_shell,	"sh[ell] [command]" },
71 72
  { "si",	"size",		mail_size,	"si[ze] [msglist]" },
  { "so",	"source",	mail_source,	"so[urce] file" },
73
  { "T",	"Type",		mail_print,	"T[ype] [msglist]" },
74 75
  { "to",	"top",		mail_top,	"to[p] [msglist]" },
  { "tou",	"touch",	mail_touch,	"tou[ch] [msglist]" },
76
  { "t",	"type",		mail_print,	"t[ype] [msglist]" },
77 78 79 80
  { "una",	"unalias",	mail_unalias,	"una[lias] [alias]..." },
  { "u",	"undelete",	mail_undelete,	"u[ndelete] [msglist]" },
  { "uns",	"unset",	mail_unset,	"uns[et] name..." },
  { "v",	"visual",	mail_visual,	"v[isual] [msglist]" },
81
  { "W",	"Write",	mail_write,	"W[rite] [msglist]" },
82
  { "w",	"write",	mail_write,	"w[rite] [[msglist] file]" },
83
  { "x",	"xit",		mail_exit,	"x[it]" },
84
  { "z",	"",		mail_z,		"z[+|-]" },
85
  { "?",	"?",		mail_help,	"? [command...]" },
86
  { "!",	"",		mail_shell,	"![command]" },
87
  { "=",	"=",		mail_eq,	"=" },
Jakob Kaivo authored
88
  { "#",	"#",		NULL,		"# comment" },
89 90 91 92
  { "*",	"*",		mail_list,	"*" },
  { "+",	"+",		mail_next,	"+ [message]" },
  { "|",	"|",		mail_pipe,	"| [[msglist] command]" },
  { "-",	"-",		mail_previous,	"- [message]" },
93 94 95 96 97
  { 0, 0, 0, 0}
};

const struct mail_command_entry mail_escape_table[] = {
  {0, 0, 0, 0}
98
};