|
|
1.1 root 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:
11: extern int type(), preserve(), delete(), undelete(), next(), shell(), schdir();
12: extern int save(), help(), headers(), pdot(), strace(), respond(), editor();
13: extern int edstop(), exit(), pcmdlist(), previous(), sendmail(), from();
14: extern int messize(), psalloc(), deltype(), unset(), set(), source();
15: extern int pversion(), group(), top(), core(), null(), stouch(), visual();
16: extern int swrite(), dosh(), file(), echo(), Respond();
17:
18: struct cmd cmdtab[] = {
19: "next", next, NDMLIST, 0, MMNORM,
20: "alias", group, M|RAWLIST, 0, 1000,
21: "print", type, MSGLIST, 0, MMNDEL,
22: "type", type, MSGLIST, 0, MMNDEL,
23: "visual", visual, I|MSGLIST, 0, MMNORM,
24: "top", top, MSGLIST, 0, MMNDEL,
25: "touch", stouch, MSGLIST, 0, MMNDEL,
26: "preserve", preserve, MSGLIST, 0, MMNDEL,
27: "delete", delete, P|MSGLIST, 0, MMNDEL,
28: "dp", deltype, MSGLIST, 0, MMNDEL,
29: "dt", deltype, MSGLIST, 0, MMNDEL,
30: "undelete", undelete, P|MSGLIST, MDELETED,MMNDEL,
31: "unset", unset, M|RAWLIST, 1, 1000,
32: "mail", sendmail, M|I|STRLIST, 0, 0,
33: "mbox", stouch, MSGLIST, 0, 0,
34: "!", shell, I|STRLIST, 0, 0,
35: "chdir", schdir, M|STRLIST, 0, 0,
36: "cd", schdir, M|STRLIST, 0, 0,
37: "save", save, STRLIST, 0, 0,
38: "source", source, M|STRLIST, 0, 0,
39: "set", set, M|RAWLIST, 0, 1000,
40: "shell", dosh, I|NOLIST, 0, 0,
41: "version", pversion, M|NOLIST, 0, 0,
42: "group", group, M|RAWLIST, 0, 1000,
43: "write", swrite, STRLIST, 0, 0,
44: "from", from, MSGLIST, 0, MMNORM,
45: "file", file, M|NOLIST, 0, 0,
46: "?", help, M|NOLIST, 0, 0,
47: "headers", headers, RAWLIST, 0, 1,
48: "help", help, M|NOLIST, 0, 0,
49: "-", previous, RAWLIST, 0, 1,
50: "=", pdot, NOLIST, 0, 0,
51: "Reply", Respond, I|MSGLIST, 0, MMNDEL,
52: "Respond", Respond, I|MSGLIST, 0, MMNDEL,
53: "reply", respond, I|MSGLIST, 0, MMNDEL,
54: "respond", respond, I|MSGLIST, 0, MMNDEL,
55: "edit", editor, I|MSGLIST, 0, MMNORM,
56: "echo", echo, RAWLIST, 0, 1000,
57: "quit", edstop, NOLIST, 0, 0,
58: "list", pcmdlist, M|NOLIST, 0, 0,
59: "xit", exit, M|NOLIST, 0, 0,
60: "exit", exit, M|NOLIST, 0, 0,
61: "size", messize, MSGLIST, 0, MMNDEL,
62: "hold", preserve, MSGLIST, 0, MMNDEL,
63: "core", core, M|NOLIST, 0, 0,
64: "#", null, M|NOLIST, 0, 0,
65: 0, 0, 0, 0, 0
66: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.