122645Sdist /* 262083Sbostic * Copyright (c) 1980, 1993 362083Sbostic * The Regents of the University of California. All rights reserved. 433499Sbostic * 542741Sbostic * %sccs.include.redist.c% 622645Sdist */ 722645Sdist 834905Sbostic #ifndef lint 9*68818Sdab static char sccsid[] = "@(#)cmdtab.c 8.2 (Berkeley) 04/20/95"; 1034905Sbostic #endif /* not lint */ 111226Skas 121226Skas #include "def.h" 1354505Sbostic #include "extern.h" 141226Skas 151226Skas /* 161226Skas * Mail -- a mail program 171226Skas * 181226Skas * Define all of the command names and bindings. 191226Skas */ 201226Skas 211226Skas struct cmd cmdtab[] = { 221226Skas "next", next, NDMLIST, 0, MMNDEL, 231226Skas "alias", group, M|RAWLIST, 0, 1000, 241226Skas "print", type, MSGLIST, 0, MMNDEL, 251226Skas "type", type, MSGLIST, 0, MMNDEL, 267574Skurt "Type", Type, MSGLIST, 0, MMNDEL, 277574Skurt "Print", Type, MSGLIST, 0, MMNDEL, 281471Skas "visual", visual, I|MSGLIST, 0, MMNORM, 291226Skas "top", top, MSGLIST, 0, MMNDEL, 301309Skas "touch", stouch, W|MSGLIST, 0, MMNDEL, 311309Skas "preserve", preserve, W|MSGLIST, 0, MMNDEL, 321309Skas "delete", delete, W|P|MSGLIST, 0, MMNDEL, 331309Skas "dp", deltype, W|MSGLIST, 0, MMNDEL, 341309Skas "dt", deltype, W|MSGLIST, 0, MMNDEL, 351226Skas "undelete", undelete, P|MSGLIST, MDELETED,MMNDEL, 361226Skas "unset", unset, M|RAWLIST, 1, 1000, 372116Skas "mail", sendmail, R|M|I|STRLIST, 0, 0, 383321Skas "mbox", mboxit, W|MSGLIST, 0, 0, 3922603Sserge "more", more, MSGLIST, 0, MMNDEL, 4022603Sserge "page", more, MSGLIST, 0, MMNDEL, 4122603Sserge "More", More, MSGLIST, 0, MMNDEL, 4222603Sserge "Page", More, MSGLIST, 0, MMNDEL, 4324753Sserge "unread", unread, MSGLIST, 0, MMNDEL, 441226Skas "!", shell, I|STRLIST, 0, 0, 455779Skurt "copy", copycmd, M|STRLIST, 0, 0, 4634966Sedward "chdir", schdir, M|RAWLIST, 0, 1, 4734966Sedward "cd", schdir, M|RAWLIST, 0, 1, 481226Skas "save", save, STRLIST, 0, 0, 4934966Sedward "source", source, M|RAWLIST, 1, 1, 501226Skas "set", set, M|RAWLIST, 0, 1000, 511226Skas "shell", dosh, I|NOLIST, 0, 0, 521226Skas "version", pversion, M|NOLIST, 0, 0, 531226Skas "group", group, M|RAWLIST, 0, 1000, 541226Skas "write", swrite, STRLIST, 0, 0, 551226Skas "from", from, MSGLIST, 0, MMNORM, 561522Skas "file", file, T|M|RAWLIST, 0, 1, 575839Skurt "folder", file, T|M|RAWLIST, 0, 1, 5834966Sedward "folders", folders, T|M|NOLIST, 0, 0, 591226Skas "?", help, M|NOLIST, 0, 0, 601226Skas "z", scroll, M|STRLIST, 0, 0, 611226Skas "headers", headers, MSGLIST, 0, MMNDEL, 621226Skas "help", help, M|NOLIST, 0, 0, 631226Skas "=", pdot, NOLIST, 0, 0, 642116Skas "Reply", Respond, R|I|MSGLIST, 0, MMNDEL, 652116Skas "Respond", Respond, R|I|MSGLIST, 0, MMNDEL, 662116Skas "reply", respond, R|I|MSGLIST, 0, MMNDEL, 672116Skas "respond", respond, R|I|MSGLIST, 0, MMNDEL, 681471Skas "edit", editor, I|MSGLIST, 0, MMNORM, 693287Skas "echo", echo, M|RAWLIST, 0, 1000, 7036554Sedward "quit", quitcmd, NOLIST, 0, 0, 711226Skas "list", pcmdlist, M|NOLIST, 0, 0, 724629Skurt "xit", rexit, M|NOLIST, 0, 0, 734629Skurt "exit", rexit, M|NOLIST, 0, 0, 741226Skas "size", messize, MSGLIST, 0, MMNDEL, 751309Skas "hold", preserve, W|MSGLIST, 0, MMNDEL, 763287Skas "if", ifcmd, F|M|RAWLIST, 1, 1, 773287Skas "else", elsecmd, F|M|RAWLIST, 0, 0, 783287Skas "endif", endifcmd, F|M|RAWLIST, 0, 0, 794392Skurt "alternates", alternates, M|RAWLIST, 0, 1000, 807574Skurt "ignore", igfield, M|RAWLIST, 0, 1000, 817574Skurt "discard", igfield, M|RAWLIST, 0, 1000, 8218660Sserge "retain", retfield, M|RAWLIST, 0, 1000, 8334692Sedward "saveignore", saveigfield, M|RAWLIST, 0, 1000, 8434692Sedward "savediscard", saveigfield, M|RAWLIST, 0, 1000, 8534692Sedward "saveretain", saveretfield, M|RAWLIST, 0, 1000, 8624753Sserge /* "Header", Header, STRLIST, 0, 1000, */ 871226Skas "core", core, M|NOLIST, 0, 0, 881226Skas "#", null, M|NOLIST, 0, 0, 894341Skurt "clobber", clobber, M|RAWLIST, 0, 1, 90*68818Sdab "inc", inc, T|NOLIST, 0, 0, 911226Skas 0, 0, 0, 0, 0 921226Skas }; 93