made conditional commands invokable while sending
authorKurt A. Schoens <kas@ucbvax.Berkeley.EDU>
Wed, 18 Mar 1981 08:43:52 +0000 (00:43 -0800)
committerKurt A. Schoens <kas@ucbvax.Berkeley.EDU>
Wed, 18 Mar 1981 08:43:52 +0000 (00:43 -0800)
SCCS-vsn: usr.bin/mail/cmdtab.c 1.7

usr/src/usr.bin/mail/cmdtab.c

index 9c581a0..b23efe4 100644 (file)
@@ -8,7 +8,7 @@
  * Define all of the command names and bindings.
  */
 
  * Define all of the command names and bindings.
  */
 
-static char *SccsId = "@(#)cmdtab.c    1.6 %G%";
+static char *SccsId = "@(#)cmdtab.c    1.7 %G%";
 
 extern int type(), preserve(), delete(), undelete(), next(), shell(), schdir();
 extern int save(), help(), headers(), pdot(), strace(), respond(), editor();
 
 extern int type(), preserve(), delete(), undelete(), next(), shell(), schdir();
 extern int save(), help(), headers(), pdot(), strace(), respond(), editor();
@@ -56,16 +56,16 @@ struct cmd cmdtab[] = {
        "reply",        respond,        R|I|MSGLIST,    0,      MMNDEL,
        "respond",      respond,        R|I|MSGLIST,    0,      MMNDEL,
        "edit",         editor,         I|MSGLIST,      0,      MMNORM,
        "reply",        respond,        R|I|MSGLIST,    0,      MMNDEL,
        "respond",      respond,        R|I|MSGLIST,    0,      MMNDEL,
        "edit",         editor,         I|MSGLIST,      0,      MMNORM,
-       "echo",         echo,           RAWLIST,        0,      1000,
+       "echo",         echo,           M|RAWLIST,      0,      1000,
        "quit",         edstop,         NOLIST,         0,      0,
        "list",         pcmdlist,       M|NOLIST,       0,      0,
        "xit",          exit,           M|NOLIST,       0,      0,
        "exit",         exit,           M|NOLIST,       0,      0,
        "size",         messize,        MSGLIST,        0,      MMNDEL,
        "hold",         preserve,       W|MSGLIST,      0,      MMNDEL,
        "quit",         edstop,         NOLIST,         0,      0,
        "list",         pcmdlist,       M|NOLIST,       0,      0,
        "xit",          exit,           M|NOLIST,       0,      0,
        "exit",         exit,           M|NOLIST,       0,      0,
        "size",         messize,        MSGLIST,        0,      MMNDEL,
        "hold",         preserve,       W|MSGLIST,      0,      MMNDEL,
-       "if",           ifcmd,          F|RAWLIST,      1,      1,
-       "else",         elsecmd,        F|RAWLIST,      0,      0,
-       "endif",        endifcmd,       F|RAWLIST,      0,      0,
+       "if",           ifcmd,          F|M|RAWLIST,    1,      1,
+       "else",         elsecmd,        F|M|RAWLIST,    0,      0,
+       "endif",        endifcmd,       F|M|RAWLIST,    0,      0,
        "core",         core,           M|NOLIST,       0,      0,
        "#",            null,           M|NOLIST,       0,      0,
        0,              0,              0,              0,      0
        "core",         core,           M|NOLIST,       0,      0,
        "#",            null,           M|NOLIST,       0,      0,
        0,              0,              0,              0,      0