BSD 3 development
[unix-history] / .ref-BSD-2 / src / Mail / cmdtab.c
CommitLineData
c9104e93
KS
1/* Copyright (c) 1979 Regents of the University of California */
2#
3
4#include "def.h"
5
6/*
7 * Mail -- a mail program
8 *
9 * Define all of the command names and bindings.
10 */
11
12extern int type(), preserve(), delete(), undelete(), next(), shell(), schdir();
13extern int save(), help(), headers(), pdot(), strace(), respond(), editor();
14extern int edstop(), exit(), pcmdlist(), previous(), sendmail(), from();
15extern int messize(), psalloc(), deltype(), unset(), set(), source();
16extern int pversion(), group(), top(), core(), null(), stouch(), visual();
17
18struct cmd cmdtab[] = {
19 "next", next, NDMLIST, 0, MMNORM,
20 "print", type, MSGLIST, 0, MMNDEL,
21 "type", type, MSGLIST, 0, MMNDEL,
22 "visual", visual, I|MSGLIST, 0, MMNORM,
23 "top", top, MSGLIST, 0, MMNDEL,
24 "touch", stouch, MSGLIST, 0, MMNDEL,
25 "preserve", preserve, MSGLIST, 0, MMNDEL,
26 "delete", delete, P|MSGLIST, 0, MMNDEL,
27 "dp", deltype, MSGLIST, 0, MMNDEL,
28 "dt", deltype, MSGLIST, 0, MMNDEL,
29 "undelete", undelete, P|MSGLIST, MDELETED,MMNDEL,
30 "unset", unset, M|RAWLIST, 1, 1000,
31 "mail", sendmail, I|STRLIST, 0, 0,
32 "mbox", stouch, MSGLIST, 0, 0,
33 "!", shell, I|STRLIST, 0, 0,
34 "chdir", schdir, M|STRLIST, 0, 0,
35 "save", save, STRLIST, 0, 0,
36 "source", source, M|STRLIST, 0, 0,
37 "set", set, M|RAWLIST, 0, 1000,
38 "version", pversion, M|NOLIST, 0, 0,
39 "alias", group, M|RAWLIST, 0, 1000,
40 "group", group, M|RAWLIST, 0, 1000,
41 "write", save, STRLIST, 0, 0,
42 "from", from, MSGLIST, 0, MMNORM,
43 "?", help, M|NOLIST, 0, 0,
44 "headers", headers, RAWLIST, 0, 1,
45 "help", help, M|NOLIST, 0, 0,
46 "-", previous, RAWLIST, 0, 1,
47 "=", pdot, NOLIST, 0, 0,
48 "reply", respond, I|MSGLIST, 0, MMNDEL,
49 "respond", respond, I|MSGLIST, 0, MMNDEL,
50 "edit", editor, I|MSGLIST, 0, MMNORM,
51 "quit", edstop, M|NOLIST, 0, 0,
52 "list", pcmdlist, M|NOLIST, 0, 0,
53 "xit", exit, M|NOLIST, 0, 0,
54 "exit", exit, M|NOLIST, 0, 0,
55 "size", messize, MSGLIST, 0, MMNDEL,
56 "hold", preserve, MSGLIST, 0, MMNDEL,
57 "core", core, M|NOLIST, 0, 0,
58 "#", null, M|NOLIST, 0, 0,
59 0, 0, 0, 0, 0
60};