Annotation of researchv10no/lbin/Mail/cmdtab.c, revision 1.1.1.1

1.1       root        1: #ifndef lint
                      2: static char *sccsid = "@(#)cmdtab.c    2.10 (Berkeley) 8/11/83";
                      3: #endif
                      4: 
                      5: #include "def.h"
                      6: 
                      7: /*
                      8:  * Mail -- a mail program
                      9:  *
                     10:  * Define all of the command names and bindings.
                     11:  */
                     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(), rexit(), pcmdlist(), sendmail(), from(), copycmd();
                     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(), ifcmd();
                     19: extern int elsecmd(), endifcmd(), mboxit(), alternates();
                     20: extern int local(), folders(), igfield(), Type(), backtoyou();
                     21: 
                     22: struct cmd cmdtab[] = {
                     23:        "next",         next,           NDMLIST,        0,      MMNDEL,
                     24:        "alias",        group,          M|RAWLIST,      0,      1000,
                     25:        "print",        type,           MSGLIST,        0,      MMNDEL,
                     26:        "type",         type,           MSGLIST,        0,      MMNDEL,
                     27:        "Type",         Type,           MSGLIST,        0,      MMNDEL,
                     28:        "Print",        Type,           MSGLIST,        0,      MMNDEL,
                     29:        "visual",       visual,         I|MSGLIST,      0,      MMNORM,
                     30:        "top",          top,            MSGLIST,        0,      MMNDEL,
                     31:        "touch",        stouch,         W|MSGLIST,      0,      MMNDEL,
                     32:        "preserve",     preserve,       W|MSGLIST,      0,      MMNDEL,
                     33:        "delete",       delete,         W|P|MSGLIST,    0,      MMNDEL,
                     34:        "dp",           deltype,        W|MSGLIST,      0,      MMNDEL,
                     35:        "dt",           deltype,        W|MSGLIST,      0,      MMNDEL,
                     36:        "undelete",     undelete,       P|MSGLIST,      MDELETED,MMNDEL,
                     37:        "unset",        unset,          M|RAWLIST,      1,      1000,
                     38:        "mail",         sendmail,       R|M|I|STRLIST,  0,      0,
                     39:        "mbox",         mboxit,         W|MSGLIST,      0,      0,
                     40:        "!",            shell,          I|STRLIST,      0,      0,
                     41:        "copy",         copycmd,        M|STRLIST,      0,      0,
                     42:        "chdir",        schdir,         M|STRLIST,      0,      0,
                     43:        "cd",           schdir,         M|STRLIST,      0,      0,
                     44:        "save",         save,           STRLIST,        0,      0,
                     45:        "source",       source,         M|STRLIST,      0,      0,
                     46:        "set",          set,            M|RAWLIST,      0,      1000,
                     47:        "shell",        dosh,           I|NOLIST,       0,      0,
                     48:        "version",      pversion,       M|NOLIST,       0,      0,
                     49:        "group",        group,          M|RAWLIST,      0,      1000,
                     50:        "write",        swrite,         STRLIST,        0,      0,
                     51:        "from",         from,           MSGLIST,        0,      MMNORM,
                     52:        "file",         file,           T|M|RAWLIST,    0,      1,
                     53:        "folder",       file,           T|M|RAWLIST,    0,      1,
                     54:        "folders",      folders,        T|M|RAWLIST,    0,      1,
                     55:        "?",            help,           M|NOLIST,       0,      0,
                     56:        "z",            scroll,         M|STRLIST,      0,      0,
                     57:        "headers",      headers,        MSGLIST,        0,      MMNDEL,
                     58:        "help",         help,           M|NOLIST,       0,      0,
                     59:        "=",            pdot,           NOLIST,         0,      0,
                     60:        "back",         backtoyou,      R|I|MSGLIST,    0,      MMNDEL,
                     61:        "Reply",        Respond,        R|I|MSGLIST,    0,      MMNDEL,
                     62:        "Respond",      Respond,        R|I|MSGLIST,    0,      MMNDEL,
                     63:        "reply",        respond,        R|I|MSGLIST,    0,      MMNDEL,
                     64:        "respond",      respond,        R|I|MSGLIST,    0,      MMNDEL,
                     65:        "edit",         editor,         I|MSGLIST,      0,      MMNORM,
                     66:        "echo",         echo,           M|RAWLIST,      0,      1000,
                     67:        "quit",         edstop,         NOLIST,         0,      0,
                     68:        "list",         pcmdlist,       M|NOLIST,       0,      0,
                     69:        "local",        local,          M|RAWLIST,      0,      1000,
                     70:        "xit",          rexit,          M|NOLIST,       0,      0,
                     71:        "exit",         rexit,          M|NOLIST,       0,      0,
                     72:        "size",         messize,        MSGLIST,        0,      MMNDEL,
                     73:        "hold",         preserve,       W|MSGLIST,      0,      MMNDEL,
                     74:        "if",           ifcmd,          F|M|RAWLIST,    1,      1,
                     75:        "else",         elsecmd,        F|M|RAWLIST,    0,      0,
                     76:        "endif",        endifcmd,       F|M|RAWLIST,    0,      0,
                     77:        "alternates",   alternates,     M|RAWLIST,      0,      1000,
                     78:        "ignore",       igfield,        M|RAWLIST,      0,      1000,
                     79:        "discard",      igfield,        M|RAWLIST,      0,      1000,
                     80:        "core",         core,           M|NOLIST,       0,      0,
                     81:        "#",            null,           M|NOLIST,       0,      0,
                     82:        0,              0,              0,              0,      0
                     83: };

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.