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	2.9 1/29/83";
  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(), clobber(), alternates();
  20: extern int local(), folders(), igfield(), Type();
  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:     "Reply",    Respond,    R|I|MSGLIST,    0,  MMNDEL,
  61:     "Respond",  Respond,    R|I|MSGLIST,    0,  MMNDEL,
  62:     "reply",    respond,    R|I|MSGLIST,    0,  MMNDEL,
  63:     "respond",  respond,    R|I|MSGLIST,    0,  MMNDEL,
  64:     "edit",     editor,     I|MSGLIST,  0,  MMNORM,
  65:     "echo",     echo,       M|RAWLIST,  0,  1000,
  66:     "quit",     edstop,     NOLIST,     0,  0,
  67:     "list",     pcmdlist,   M|NOLIST,   0,  0,
  68:     "local",    local,      M|RAWLIST,  0,  1000,
  69:     "xit",      rexit,      M|NOLIST,   0,  0,
  70:     "exit",     rexit,      M|NOLIST,   0,  0,
  71:     "size",     messize,    MSGLIST,    0,  MMNDEL,
  72:     "hold",     preserve,   W|MSGLIST,  0,  MMNDEL,
  73:     "if",       ifcmd,      F|M|RAWLIST,    1,  1,
  74:     "else",     elsecmd,    F|M|RAWLIST,    0,  0,
  75:     "endif",    endifcmd,   F|M|RAWLIST,    0,  0,
  76:     "alternates",   alternates, M|RAWLIST,  0,  1000,
  77:     "ignore",   igfield,    M|RAWLIST,  0,  1000,
  78:     "discard",  igfield,    M|RAWLIST,  0,  1000,
  79:     "core",     core,       M|NOLIST,   0,  0,
  80:     "#",        null,       M|NOLIST,   0,  0,
  81:     "clobber",  clobber,    M|RAWLIST,  0,  1,
  82:     0,      0,      0,      0,  0
  83: };

Defined variables

SccsId defined in line 11; never used
cmdtab defined in line 22; never used
Last modified: 1983-01-30
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 768
Valid CSS Valid XHTML 1.0 Strict