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