1 /* 2 * Copyright (c) 1980, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * %sccs.include.redist.c% 6 */ 7 8 #ifndef lint 9 static char sccsid[] = "@(#)cmdtab.c 8.1 (Berkeley) 06/06/93"; 10 #endif /* not lint */ 11 12 #include "def.h" 13 #include "extern.h" 14 15 /* 16 * Mail -- a mail program 17 * 18 * Define all of the command names and bindings. 19 */ 20 21 struct cmd cmdtab[] = { 22 "next", next, NDMLIST, 0, MMNDEL, 23 "alias", group, M|RAWLIST, 0, 1000, 24 "print", type, MSGLIST, 0, MMNDEL, 25 "type", type, MSGLIST, 0, MMNDEL, 26 "Type", Type, MSGLIST, 0, MMNDEL, 27 "Print", Type, MSGLIST, 0, MMNDEL, 28 "visual", visual, I|MSGLIST, 0, MMNORM, 29 "top", top, MSGLIST, 0, MMNDEL, 30 "touch", stouch, W|MSGLIST, 0, MMNDEL, 31 "preserve", preserve, W|MSGLIST, 0, MMNDEL, 32 "delete", delete, W|P|MSGLIST, 0, MMNDEL, 33 "dp", deltype, W|MSGLIST, 0, MMNDEL, 34 "dt", deltype, W|MSGLIST, 0, MMNDEL, 35 "undelete", undelete, P|MSGLIST, MDELETED,MMNDEL, 36 "unset", unset, M|RAWLIST, 1, 1000, 37 "mail", sendmail, R|M|I|STRLIST, 0, 0, 38 "mbox", mboxit, W|MSGLIST, 0, 0, 39 "more", more, MSGLIST, 0, MMNDEL, 40 "page", more, MSGLIST, 0, MMNDEL, 41 "More", More, MSGLIST, 0, MMNDEL, 42 "Page", More, MSGLIST, 0, MMNDEL, 43 "unread", unread, MSGLIST, 0, MMNDEL, 44 "!", shell, I|STRLIST, 0, 0, 45 "copy", copycmd, M|STRLIST, 0, 0, 46 "chdir", schdir, M|RAWLIST, 0, 1, 47 "cd", schdir, M|RAWLIST, 0, 1, 48 "save", save, STRLIST, 0, 0, 49 "source", source, M|RAWLIST, 1, 1, 50 "set", set, M|RAWLIST, 0, 1000, 51 "shell", dosh, I|NOLIST, 0, 0, 52 "version", pversion, M|NOLIST, 0, 0, 53 "group", group, M|RAWLIST, 0, 1000, 54 "write", swrite, STRLIST, 0, 0, 55 "from", from, MSGLIST, 0, MMNORM, 56 "file", file, T|M|RAWLIST, 0, 1, 57 "folder", file, T|M|RAWLIST, 0, 1, 58 "folders", folders, T|M|NOLIST, 0, 0, 59 "?", help, M|NOLIST, 0, 0, 60 "z", scroll, M|STRLIST, 0, 0, 61 "headers", headers, MSGLIST, 0, MMNDEL, 62 "help", help, M|NOLIST, 0, 0, 63 "=", pdot, NOLIST, 0, 0, 64 "Reply", Respond, R|I|MSGLIST, 0, MMNDEL, 65 "Respond", Respond, R|I|MSGLIST, 0, MMNDEL, 66 "reply", respond, R|I|MSGLIST, 0, MMNDEL, 67 "respond", respond, R|I|MSGLIST, 0, MMNDEL, 68 "edit", editor, I|MSGLIST, 0, MMNORM, 69 "echo", echo, M|RAWLIST, 0, 1000, 70 "quit", quitcmd, NOLIST, 0, 0, 71 "list", pcmdlist, M|NOLIST, 0, 0, 72 "xit", rexit, M|NOLIST, 0, 0, 73 "exit", rexit, M|NOLIST, 0, 0, 74 "size", messize, MSGLIST, 0, MMNDEL, 75 "hold", preserve, W|MSGLIST, 0, MMNDEL, 76 "if", ifcmd, F|M|RAWLIST, 1, 1, 77 "else", elsecmd, F|M|RAWLIST, 0, 0, 78 "endif", endifcmd, F|M|RAWLIST, 0, 0, 79 "alternates", alternates, M|RAWLIST, 0, 1000, 80 "ignore", igfield, M|RAWLIST, 0, 1000, 81 "discard", igfield, M|RAWLIST, 0, 1000, 82 "retain", retfield, M|RAWLIST, 0, 1000, 83 "saveignore", saveigfield, M|RAWLIST, 0, 1000, 84 "savediscard", saveigfield, M|RAWLIST, 0, 1000, 85 "saveretain", saveretfield, M|RAWLIST, 0, 1000, 86 /* "Header", Header, STRLIST, 0, 1000, */ 87 "core", core, M|NOLIST, 0, 0, 88 "#", null, M|NOLIST, 0, 0, 89 "clobber", clobber, M|RAWLIST, 0, 1, 90 0, 0, 0, 0, 0 91 }; 92