|
|
1.1 root 1: /*
2: * Copyright (c) 1980 Regents of the University of California.
3: * All rights reserved.
4: *
5: * Redistribution and use in source and binary forms are permitted
6: * provided that: (1) source distributions retain this entire copyright
7: * notice and comment, and (2) distributions including binaries display
8: * the following acknowledgement: ``This product includes software
9: * developed by the University of California, Berkeley and its contributors''
10: * in the documentation or other materials provided with the distribution
11: * and in all advertising materials mentioning features or use of this
12: * software. Neither the name of the University nor the names of its
13: * contributors may be used to endorse or promote products derived
14: * from this software without specific prior written permission.
15: * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
16: * IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
17: * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
18: */
19:
20: #ifndef lint
21: static char sccsid[] = "@(#)cmdtab.c 5.11 (Berkeley) 6/1/90";
22: #endif /* not lint */
23:
24: #include "def.h"
25:
26: /*
27: * Mail -- a mail program
28: *
29: * Define all of the command names and bindings.
30: */
31:
32: extern int type(), preserve(), delete(), undelete(), next(), shell(), schdir();
33: extern int save(), help(), headers(), pdot(), respond(), editor();
34: extern int quitcmd(), rexit(), pcmdlist(), sendmail(), from(), copycmd();
35: extern int messize(), psalloc(), deltype(), unset(), set(), source();
36: extern int pversion(), group(), top(), core(), null(), stouch(), visual();
37: extern int swrite(), dosh(), file(), echo(), Respond(), scroll(), ifcmd();
38: extern int elsecmd(), endifcmd(), mboxit(), clobber(), alternates();
39: extern int folders(), igfield(), Type(), retfield(), more(), More();
40: extern int saveigfield(), saveretfield();
41: extern int unread(); /* , Header(); */
42:
43: struct cmd cmdtab[] = {
44: "next", next, NDMLIST, 0, MMNDEL,
45: "alias", group, M|RAWLIST, 0, 1000,
46: "print", type, MSGLIST, 0, MMNDEL,
47: "type", type, MSGLIST, 0, MMNDEL,
48: "Type", Type, MSGLIST, 0, MMNDEL,
49: "Print", Type, MSGLIST, 0, MMNDEL,
50: "visual", visual, I|MSGLIST, 0, MMNORM,
51: "top", top, MSGLIST, 0, MMNDEL,
52: "touch", stouch, W|MSGLIST, 0, MMNDEL,
53: "preserve", preserve, W|MSGLIST, 0, MMNDEL,
54: "delete", delete, W|P|MSGLIST, 0, MMNDEL,
55: "dp", deltype, W|MSGLIST, 0, MMNDEL,
56: "dt", deltype, W|MSGLIST, 0, MMNDEL,
57: "undelete", undelete, P|MSGLIST, MDELETED,MMNDEL,
58: "unset", unset, M|RAWLIST, 1, 1000,
59: "mail", sendmail, R|M|I|STRLIST, 0, 0,
60: "mbox", mboxit, W|MSGLIST, 0, 0,
61: "more", more, MSGLIST, 0, MMNDEL,
62: "page", more, MSGLIST, 0, MMNDEL,
63: "More", More, MSGLIST, 0, MMNDEL,
64: "Page", More, MSGLIST, 0, MMNDEL,
65: "unread", unread, MSGLIST, 0, MMNDEL,
66: "!", shell, I|STRLIST, 0, 0,
67: "copy", copycmd, M|STRLIST, 0, 0,
68: "chdir", schdir, M|RAWLIST, 0, 1,
69: "cd", schdir, M|RAWLIST, 0, 1,
70: "save", save, STRLIST, 0, 0,
71: "source", source, M|RAWLIST, 1, 1,
72: "set", set, M|RAWLIST, 0, 1000,
73: "shell", dosh, I|NOLIST, 0, 0,
74: "version", pversion, M|NOLIST, 0, 0,
75: "group", group, M|RAWLIST, 0, 1000,
76: "write", swrite, STRLIST, 0, 0,
77: "from", from, MSGLIST, 0, MMNORM,
78: "file", file, T|M|RAWLIST, 0, 1,
79: "folder", file, T|M|RAWLIST, 0, 1,
80: "folders", folders, T|M|NOLIST, 0, 0,
81: "?", help, M|NOLIST, 0, 0,
82: "z", scroll, M|STRLIST, 0, 0,
83: "headers", headers, MSGLIST, 0, MMNDEL,
84: "help", help, M|NOLIST, 0, 0,
85: "=", pdot, NOLIST, 0, 0,
86: "Reply", Respond, R|I|MSGLIST, 0, MMNDEL,
87: "Respond", Respond, R|I|MSGLIST, 0, MMNDEL,
88: "reply", respond, R|I|MSGLIST, 0, MMNDEL,
89: "respond", respond, R|I|MSGLIST, 0, MMNDEL,
90: "edit", editor, I|MSGLIST, 0, MMNORM,
91: "echo", echo, M|RAWLIST, 0, 1000,
92: "quit", quitcmd, NOLIST, 0, 0,
93: "list", pcmdlist, M|NOLIST, 0, 0,
94: "xit", rexit, M|NOLIST, 0, 0,
95: "exit", rexit, M|NOLIST, 0, 0,
96: "size", messize, MSGLIST, 0, MMNDEL,
97: "hold", preserve, W|MSGLIST, 0, MMNDEL,
98: "if", ifcmd, F|M|RAWLIST, 1, 1,
99: "else", elsecmd, F|M|RAWLIST, 0, 0,
100: "endif", endifcmd, F|M|RAWLIST, 0, 0,
101: "alternates", alternates, M|RAWLIST, 0, 1000,
102: "ignore", igfield, M|RAWLIST, 0, 1000,
103: "discard", igfield, M|RAWLIST, 0, 1000,
104: "retain", retfield, M|RAWLIST, 0, 1000,
105: "saveignore", saveigfield, M|RAWLIST, 0, 1000,
106: "savediscard", saveigfield, M|RAWLIST, 0, 1000,
107: "saveretain", saveretfield, M|RAWLIST, 0, 1000,
108: /* "Header", Header, STRLIST, 0, 1000, */
109: "core", core, M|NOLIST, 0, 0,
110: "#", null, M|NOLIST, 0, 0,
111: "clobber", clobber, M|RAWLIST, 0, 1,
112: 0, 0, 0, 0, 0
113: };
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.