changed delete to touch message and clear preserve and mbox bits
authorKurt A. Schoens <kas@ucbvax.Berkeley.EDU>
Sat, 21 Mar 1981 07:23:23 +0000 (23:23 -0800)
committerKurt A. Schoens <kas@ucbvax.Berkeley.EDU>
Sat, 21 Mar 1981 07:23:23 +0000 (23:23 -0800)
SCCS-vsn: usr.bin/mail/cmd2.c 1.4

usr/src/usr.bin/mail/cmd2.c

index 6b49b78..9b8135e 100644 (file)
@@ -9,7 +9,7 @@
  * More user commands.
  */
 
  * More user commands.
  */
 
-static char *SccsId = "@(#)cmd2.c      1.3 %G%";
+static char *SccsId = "@(#)cmd2.c      1.4 %G%";
 
 /*
  * If any arguments were given, go to the next applicable argument
 
 /*
  * If any arguments were given, go to the next applicable argument
@@ -311,8 +311,8 @@ delm(msgvec)
                mesg = *ip;
                touch(mesg);
                mp = &message[mesg-1];
                mesg = *ip;
                touch(mesg);
                mp = &message[mesg-1];
-               mp->m_flag |= MDELETED;
-               mp->m_flag &= ~(MPRESERVE|MSAVED);
+               mp->m_flag |= MDELETED|MTOUCH;
+               mp->m_flag &= ~(MPRESERVE|MSAVED|MBOX);
                last = mesg;
        }
        if (last != NULL) {
                last = mesg;
        }
        if (last != NULL) {