BSD 4_1c_2 release
[unix-history] / usr / src / ucb / Mail / cmdtab.c
CommitLineData
1d3a1a2f
KS
1#
2
3#include "def.h"
4
5/*
6 * Mail -- a mail program
7 *
8 * Define all of the command names and bindings.
9 */
10
e804469b 11static char *SccsId = "@(#)cmdtab.c 2.9 1/29/83";
1d3a1a2f
KS
12
13extern int type(), preserve(), delete(), undelete(), next(), shell(), schdir();
14extern int save(), help(), headers(), pdot(), strace(), respond(), editor();
0d149b8b 15extern int edstop(), rexit(), pcmdlist(), sendmail(), from(), copycmd();
1d3a1a2f
KS
16extern int messize(), psalloc(), deltype(), unset(), set(), source();
17extern int pversion(), group(), top(), core(), null(), stouch(), visual();
1bd5b11d 18extern int swrite(), dosh(), file(), echo(), Respond(), scroll(), ifcmd();
26210b9d 19extern int elsecmd(), endifcmd(), mboxit(), clobber(), alternates();
15002fd1 20extern int local(), folders(), igfield(), Type();
1d3a1a2f
KS
21
22struct cmd cmdtab[] = {
23 "next", next, NDMLIST, 0, MMNDEL,
24 "alias", group, M|RAWLIST, 0, 1000,
25 "print", type, MSGLIST, 0, MMNDEL,
26 "type", type, MSGLIST, 0, MMNDEL,
e6160718
KS
27 "Type", Type, MSGLIST, 0, MMNDEL,
28 "Print", Type, MSGLIST, 0, MMNDEL,
67cb9e50 29 "visual", visual, I|MSGLIST, 0, MMNORM,
1d3a1a2f 30 "top", top, MSGLIST, 0, MMNDEL,
c548598c
KS
31 "touch", stouch, W|MSGLIST, 0, MMNDEL,
32 "preserve", preserve, W|MSGLIST, 0, MMNDEL,
33 "delete", delete, W|P|MSGLIST, 0, MMNDEL,
34 "dp", deltype, W|MSGLIST, 0, MMNDEL,
35 "dt", deltype, W|MSGLIST, 0, MMNDEL,
1d3a1a2f
KS
36 "undelete", undelete, P|MSGLIST, MDELETED,MMNDEL,
37 "unset", unset, M|RAWLIST, 1, 1000,
cbaa6c31 38 "mail", sendmail, R|M|I|STRLIST, 0, 0,
b06be156 39 "mbox", mboxit, W|MSGLIST, 0, 0,
1d3a1a2f 40 "!", shell, I|STRLIST, 0, 0,
0d149b8b 41 "copy", copycmd, M|STRLIST, 0, 0,
1d3a1a2f
KS
42 "chdir", schdir, M|STRLIST, 0, 0,
43 "cd", schdir, M|STRLIST, 0, 0,
44 "save", save, STRLIST, 0, 0,
45 "source", source, M|STRLIST, 0, 0,
46 "set", set, M|RAWLIST, 0, 1000,
47 "shell", dosh, I|NOLIST, 0, 0,
48 "version", pversion, M|NOLIST, 0, 0,
49 "group", group, M|RAWLIST, 0, 1000,
50 "write", swrite, STRLIST, 0, 0,
51 "from", from, MSGLIST, 0, MMNORM,
1bd5b11d 52 "file", file, T|M|RAWLIST, 0, 1,
176b7b1e 53 "folder", file, T|M|RAWLIST, 0, 1,
c8883d70 54 "folders", folders, T|M|RAWLIST, 0, 1,
1d3a1a2f
KS
55 "?", help, M|NOLIST, 0, 0,
56 "z", scroll, M|STRLIST, 0, 0,
57 "headers", headers, MSGLIST, 0, MMNDEL,
58 "help", help, M|NOLIST, 0, 0,
59 "=", pdot, NOLIST, 0, 0,
cbaa6c31
KS
60 "Reply", Respond, R|I|MSGLIST, 0, MMNDEL,
61 "Respond", Respond, R|I|MSGLIST, 0, MMNDEL,
62 "reply", respond, R|I|MSGLIST, 0, MMNDEL,
63 "respond", respond, R|I|MSGLIST, 0, MMNDEL,
67cb9e50 64 "edit", editor, I|MSGLIST, 0, MMNORM,
e90df9d9 65 "echo", echo, M|RAWLIST, 0, 1000,
1d3a1a2f
KS
66 "quit", edstop, NOLIST, 0, 0,
67 "list", pcmdlist, M|NOLIST, 0, 0,
15002fd1 68 "local", local, M|RAWLIST, 0, 1000,
8715a8f1
KS
69 "xit", rexit, M|NOLIST, 0, 0,
70 "exit", rexit, M|NOLIST, 0, 0,
1d3a1a2f 71 "size", messize, MSGLIST, 0, MMNDEL,
c548598c 72 "hold", preserve, W|MSGLIST, 0, MMNDEL,
e90df9d9
KS
73 "if", ifcmd, F|M|RAWLIST, 1, 1,
74 "else", elsecmd, F|M|RAWLIST, 0, 0,
75 "endif", endifcmd, F|M|RAWLIST, 0, 0,
26210b9d 76 "alternates", alternates, M|RAWLIST, 0, 1000,
e6160718
KS
77 "ignore", igfield, M|RAWLIST, 0, 1000,
78 "discard", igfield, M|RAWLIST, 0, 1000,
1d3a1a2f
KS
79 "core", core, M|NOLIST, 0, 0,
80 "#", null, M|NOLIST, 0, 0,
cafd3e72 81 "clobber", clobber, M|RAWLIST, 0, 1,
1d3a1a2f
KS
82 0, 0, 0, 0, 0
83};