new RT/PC entries, 5 small fixes, removed aaa-29-np, I? means IBM now
[unix-history] / usr / src / usr.bin / mail / cmdtab.c
CommitLineData
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
828615a1 8static char *sccsid = "@(#)cmdtab.c 5.4 (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 19extern int type(), preserve(), delete(), undelete(), next(), shell(), schdir();
828615a1 20extern int save(), help(), headers(), pdot(), respond(), editor();
0d149b8b 21extern int edstop(), rexit(), pcmdlist(), sendmail(), from(), copycmd();
1d3a1a2f
KS
22extern int messize(), psalloc(), deltype(), unset(), set(), source();
23extern int pversion(), group(), top(), core(), null(), stouch(), visual();
1bd5b11d 24extern int swrite(), dosh(), file(), echo(), Respond(), scroll(), ifcmd();
26210b9d 25extern int elsecmd(), endifcmd(), mboxit(), clobber(), alternates();
b041ccec 26extern int local(), folders(), igfield(), Type(), retfield(), more(), More();
de7ac1f4 27extern int unread(); /* , Header(); */
1d3a1a2f
KS
28
29struct cmd cmdtab[] = {
30 "next", next, NDMLIST, 0, MMNDEL,
31 "alias", group, M|RAWLIST, 0, 1000,
32 "print", type, MSGLIST, 0, MMNDEL,
33 "type", type, MSGLIST, 0, MMNDEL,
e6160718
KS
34 "Type", Type, MSGLIST, 0, MMNDEL,
35 "Print", Type, MSGLIST, 0, MMNDEL,
67cb9e50 36 "visual", visual, I|MSGLIST, 0, MMNORM,
1d3a1a2f 37 "top", top, MSGLIST, 0, MMNDEL,
c548598c
KS
38 "touch", stouch, W|MSGLIST, 0, MMNDEL,
39 "preserve", preserve, W|MSGLIST, 0, MMNDEL,
40 "delete", delete, W|P|MSGLIST, 0, MMNDEL,
41 "dp", deltype, W|MSGLIST, 0, MMNDEL,
42 "dt", deltype, W|MSGLIST, 0, MMNDEL,
1d3a1a2f
KS
43 "undelete", undelete, P|MSGLIST, MDELETED,MMNDEL,
44 "unset", unset, M|RAWLIST, 1, 1000,
cbaa6c31 45 "mail", sendmail, R|M|I|STRLIST, 0, 0,
b06be156 46 "mbox", mboxit, W|MSGLIST, 0, 0,
b041ccec
S
47 "more", more, MSGLIST, 0, MMNDEL,
48 "page", more, MSGLIST, 0, MMNDEL,
49 "More", More, MSGLIST, 0, MMNDEL,
50 "Page", More, MSGLIST, 0, MMNDEL,
de7ac1f4
S
51 "unread", unread, MSGLIST, 0, MMNDEL,
52 "Unread", unread, MSGLIST, 0, MMNDEL,
53 "new", unread, MSGLIST, 0, MMNDEL,
54 "New", unread, MSGLIST, 0, MMNDEL,
1d3a1a2f 55 "!", shell, I|STRLIST, 0, 0,
0d149b8b 56 "copy", copycmd, M|STRLIST, 0, 0,
1d3a1a2f
KS
57 "chdir", schdir, M|STRLIST, 0, 0,
58 "cd", schdir, M|STRLIST, 0, 0,
59 "save", save, STRLIST, 0, 0,
60 "source", source, M|STRLIST, 0, 0,
61 "set", set, M|RAWLIST, 0, 1000,
62 "shell", dosh, I|NOLIST, 0, 0,
63 "version", pversion, M|NOLIST, 0, 0,
64 "group", group, M|RAWLIST, 0, 1000,
65 "write", swrite, STRLIST, 0, 0,
66 "from", from, MSGLIST, 0, MMNORM,
1bd5b11d 67 "file", file, T|M|RAWLIST, 0, 1,
176b7b1e 68 "folder", file, T|M|RAWLIST, 0, 1,
c8883d70 69 "folders", folders, T|M|RAWLIST, 0, 1,
1d3a1a2f
KS
70 "?", help, M|NOLIST, 0, 0,
71 "z", scroll, M|STRLIST, 0, 0,
72 "headers", headers, MSGLIST, 0, MMNDEL,
73 "help", help, M|NOLIST, 0, 0,
74 "=", pdot, NOLIST, 0, 0,
cbaa6c31
KS
75 "Reply", Respond, R|I|MSGLIST, 0, MMNDEL,
76 "Respond", Respond, R|I|MSGLIST, 0, MMNDEL,
77 "reply", respond, R|I|MSGLIST, 0, MMNDEL,
78 "respond", respond, R|I|MSGLIST, 0, MMNDEL,
67cb9e50 79 "edit", editor, I|MSGLIST, 0, MMNORM,
e90df9d9 80 "echo", echo, M|RAWLIST, 0, 1000,
1d3a1a2f
KS
81 "quit", edstop, NOLIST, 0, 0,
82 "list", pcmdlist, M|NOLIST, 0, 0,
15002fd1 83 "local", local, M|RAWLIST, 0, 1000,
8715a8f1
KS
84 "xit", rexit, M|NOLIST, 0, 0,
85 "exit", rexit, M|NOLIST, 0, 0,
1d3a1a2f 86 "size", messize, MSGLIST, 0, MMNDEL,
c548598c 87 "hold", preserve, W|MSGLIST, 0, MMNDEL,
e90df9d9
KS
88 "if", ifcmd, F|M|RAWLIST, 1, 1,
89 "else", elsecmd, F|M|RAWLIST, 0, 0,
90 "endif", endifcmd, F|M|RAWLIST, 0, 0,
26210b9d 91 "alternates", alternates, M|RAWLIST, 0, 1000,
e6160718
KS
92 "ignore", igfield, M|RAWLIST, 0, 1000,
93 "discard", igfield, M|RAWLIST, 0, 1000,
46053c99 94 "retain", retfield, M|RAWLIST, 0, 1000,
de7ac1f4 95/* "Header", Header, STRLIST, 0, 1000, */
1d3a1a2f
KS
96 "core", core, M|NOLIST, 0, 0,
97 "#", null, M|NOLIST, 0, 0,
cafd3e72 98 "clobber", clobber, M|RAWLIST, 0, 1,
1d3a1a2f
KS
99 0, 0, 0, 0, 0
100};