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: 7: #ifndef lint 8: static char *sccsid = "@(#)cmdtab.c 5.3 (Berkeley) 9/15/85"; 9: #endif not lint 10: 11: #include "def.h" 12: 13: /* 14: * Mail -- a mail program 15: * 16: * Define all of the command names and bindings. 17: */ 18: 19: extern int type(), preserve(), delete(), undelete(), next(), shell(), schdir(); 20: extern int save(), help(), headers(), pdot(), strace(), respond(), editor(); 21: extern int edstop(), rexit(), pcmdlist(), sendmail(), from(), copycmd(); 22: extern int messize(), psalloc(), deltype(), unset(), set(), source(); 23: extern int pversion(), group(), top(), core(), null(), stouch(), visual(); 24: extern int swrite(), dosh(), file(), echo(), Respond(), scroll(), ifcmd(); 25: extern int elsecmd(), endifcmd(), mboxit(), clobber(), alternates(); 26: extern int local(), folders(), igfield(), Type(), retfield(), more(), More(); 27: extern int unread(); /* , Header(); */ 28: 29: struct 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, 34: "Type", Type, MSGLIST, 0, MMNDEL, 35: "Print", Type, MSGLIST, 0, MMNDEL, 36: "visual", visual, I|MSGLIST, 0, MMNORM, 37: "top", top, MSGLIST, 0, MMNDEL, 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, 43: "undelete", undelete, P|MSGLIST, MDELETED,MMNDEL, 44: "unset", unset, M|RAWLIST, 1, 1000, 45: "mail", sendmail, R|M|I|STRLIST, 0, 0, 46: "mbox", mboxit, W|MSGLIST, 0, 0, 47: "more", more, MSGLIST, 0, MMNDEL, 48: "page", more, MSGLIST, 0, MMNDEL, 49: "More", More, MSGLIST, 0, MMNDEL, 50: "Page", More, MSGLIST, 0, MMNDEL, 51: "unread", unread, MSGLIST, 0, MMNDEL, 52: "Unread", unread, MSGLIST, 0, MMNDEL, 53: "new", unread, MSGLIST, 0, MMNDEL, 54: "New", unread, MSGLIST, 0, MMNDEL, 55: "!", shell, I|STRLIST, 0, 0, 56: "copy", copycmd, M|STRLIST, 0, 0, 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, 67: "file", file, T|M|RAWLIST, 0, 1, 68: "folder", file, T|M|RAWLIST, 0, 1, 69: "folders", folders, T|M|RAWLIST, 0, 1, 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, 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, 79: "edit", editor, I|MSGLIST, 0, MMNORM, 80: "echo", echo, M|RAWLIST, 0, 1000, 81: "quit", edstop, NOLIST, 0, 0, 82: "list", pcmdlist, M|NOLIST, 0, 0, 83: "local", local, M|RAWLIST, 0, 1000, 84: "xit", rexit, M|NOLIST, 0, 0, 85: "exit", rexit, M|NOLIST, 0, 0, 86: "size", messize, MSGLIST, 0, MMNDEL, 87: "hold", preserve, W|MSGLIST, 0, MMNDEL, 88: "if", ifcmd, F|M|RAWLIST, 1, 1, 89: "else", elsecmd, F|M|RAWLIST, 0, 0, 90: "endif", endifcmd, F|M|RAWLIST, 0, 0, 91: "alternates", alternates, M|RAWLIST, 0, 1000, 92: "ignore", igfield, M|RAWLIST, 0, 1000, 93: "discard", igfield, M|RAWLIST, 0, 1000, 94: "retain", retfield, M|RAWLIST, 0, 1000, 95: /* "Header", Header, STRLIST, 0, 1000, */ 96: "core", core, M|NOLIST, 0, 0, 97: "#", null, M|NOLIST, 0, 0, 98: "clobber", clobber, M|RAWLIST, 0, 1, 99: 0, 0, 0, 0, 0 100: };