Commit | Line | Data |
---|---|---|
b059c7be DF |
1 | /* |
2 | * Copyright (c) 1980 Regents of the University of California. | |
3 | * All rights reserved. The Berkeley software License Agreement | |
4 | * specifies the terms and conditions for redistribution. | |
5 | */ | |
6 | ||
2ae9f53f | 7 | #ifndef lint |
2fd8b883 | 8 | static char *sccsid = "@(#)cmdtab.c 5.2 (Berkeley) %G%"; |
b059c7be | 9 | #endif not lint |
1d3a1a2f KS |
10 | |
11 | #include "def.h" | |
12 | ||
13 | /* | |
14 | * Mail -- a mail program | |
15 | * | |
16 | * Define all of the command names and bindings. | |
17 | */ | |
18 | ||
1d3a1a2f KS |
19 | extern int type(), preserve(), delete(), undelete(), next(), shell(), schdir(); |
20 | extern int save(), help(), headers(), pdot(), strace(), respond(), editor(); | |
0d149b8b | 21 | extern int edstop(), rexit(), pcmdlist(), sendmail(), from(), copycmd(); |
1d3a1a2f KS |
22 | extern int messize(), psalloc(), deltype(), unset(), set(), source(); |
23 | extern int pversion(), group(), top(), core(), null(), stouch(), visual(); | |
1bd5b11d | 24 | extern int swrite(), dosh(), file(), echo(), Respond(), scroll(), ifcmd(); |
26210b9d | 25 | extern int elsecmd(), endifcmd(), mboxit(), clobber(), alternates(); |
b041ccec | 26 | extern int local(), folders(), igfield(), Type(), retfield(), more(), More(); |
1d3a1a2f KS |
27 | |
28 | struct cmd cmdtab[] = { | |
29 | "next", next, NDMLIST, 0, MMNDEL, | |
30 | "alias", group, M|RAWLIST, 0, 1000, | |
31 | "print", type, MSGLIST, 0, MMNDEL, | |
32 | "type", type, MSGLIST, 0, MMNDEL, | |
e6160718 KS |
33 | "Type", Type, MSGLIST, 0, MMNDEL, |
34 | "Print", Type, MSGLIST, 0, MMNDEL, | |
67cb9e50 | 35 | "visual", visual, I|MSGLIST, 0, MMNORM, |
1d3a1a2f | 36 | "top", top, MSGLIST, 0, MMNDEL, |
c548598c KS |
37 | "touch", stouch, W|MSGLIST, 0, MMNDEL, |
38 | "preserve", preserve, W|MSGLIST, 0, MMNDEL, | |
39 | "delete", delete, W|P|MSGLIST, 0, MMNDEL, | |
40 | "dp", deltype, W|MSGLIST, 0, MMNDEL, | |
41 | "dt", deltype, W|MSGLIST, 0, MMNDEL, | |
1d3a1a2f KS |
42 | "undelete", undelete, P|MSGLIST, MDELETED,MMNDEL, |
43 | "unset", unset, M|RAWLIST, 1, 1000, | |
cbaa6c31 | 44 | "mail", sendmail, R|M|I|STRLIST, 0, 0, |
b06be156 | 45 | "mbox", mboxit, W|MSGLIST, 0, 0, |
b041ccec S |
46 | "more", more, MSGLIST, 0, MMNDEL, |
47 | "page", more, MSGLIST, 0, MMNDEL, | |
48 | "More", More, MSGLIST, 0, MMNDEL, | |
49 | "Page", More, MSGLIST, 0, MMNDEL, | |
1d3a1a2f | 50 | "!", shell, I|STRLIST, 0, 0, |
0d149b8b | 51 | "copy", copycmd, M|STRLIST, 0, 0, |
1d3a1a2f KS |
52 | "chdir", schdir, M|STRLIST, 0, 0, |
53 | "cd", schdir, M|STRLIST, 0, 0, | |
54 | "save", save, STRLIST, 0, 0, | |
55 | "source", source, M|STRLIST, 0, 0, | |
56 | "set", set, M|RAWLIST, 0, 1000, | |
57 | "shell", dosh, I|NOLIST, 0, 0, | |
58 | "version", pversion, M|NOLIST, 0, 0, | |
59 | "group", group, M|RAWLIST, 0, 1000, | |
60 | "write", swrite, STRLIST, 0, 0, | |
61 | "from", from, MSGLIST, 0, MMNORM, | |
1bd5b11d | 62 | "file", file, T|M|RAWLIST, 0, 1, |
176b7b1e | 63 | "folder", file, T|M|RAWLIST, 0, 1, |
c8883d70 | 64 | "folders", folders, T|M|RAWLIST, 0, 1, |
1d3a1a2f KS |
65 | "?", help, M|NOLIST, 0, 0, |
66 | "z", scroll, M|STRLIST, 0, 0, | |
67 | "headers", headers, MSGLIST, 0, MMNDEL, | |
68 | "help", help, M|NOLIST, 0, 0, | |
69 | "=", pdot, NOLIST, 0, 0, | |
cbaa6c31 KS |
70 | "Reply", Respond, R|I|MSGLIST, 0, MMNDEL, |
71 | "Respond", Respond, R|I|MSGLIST, 0, MMNDEL, | |
72 | "reply", respond, R|I|MSGLIST, 0, MMNDEL, | |
73 | "respond", respond, R|I|MSGLIST, 0, MMNDEL, | |
67cb9e50 | 74 | "edit", editor, I|MSGLIST, 0, MMNORM, |
e90df9d9 | 75 | "echo", echo, M|RAWLIST, 0, 1000, |
1d3a1a2f KS |
76 | "quit", edstop, NOLIST, 0, 0, |
77 | "list", pcmdlist, M|NOLIST, 0, 0, | |
15002fd1 | 78 | "local", local, M|RAWLIST, 0, 1000, |
8715a8f1 KS |
79 | "xit", rexit, M|NOLIST, 0, 0, |
80 | "exit", rexit, M|NOLIST, 0, 0, | |
1d3a1a2f | 81 | "size", messize, MSGLIST, 0, MMNDEL, |
c548598c | 82 | "hold", preserve, W|MSGLIST, 0, MMNDEL, |
e90df9d9 KS |
83 | "if", ifcmd, F|M|RAWLIST, 1, 1, |
84 | "else", elsecmd, F|M|RAWLIST, 0, 0, | |
85 | "endif", endifcmd, F|M|RAWLIST, 0, 0, | |
26210b9d | 86 | "alternates", alternates, M|RAWLIST, 0, 1000, |
e6160718 KS |
87 | "ignore", igfield, M|RAWLIST, 0, 1000, |
88 | "discard", igfield, M|RAWLIST, 0, 1000, | |
46053c99 | 89 | "retain", retfield, M|RAWLIST, 0, 1000, |
1d3a1a2f KS |
90 | "core", core, M|NOLIST, 0, 0, |
91 | "#", null, M|NOLIST, 0, 0, | |
cafd3e72 | 92 | "clobber", clobber, M|RAWLIST, 0, 1, |
1d3a1a2f KS |
93 | 0, 0, 0, 0, 0 |
94 | }; |