added in nifty changes from branch to make easier to compile
[unix-history] / usr / src / usr.bin / mail / v7.local.c
index 84b1c6c..7a72a3f 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "rcv.h"
 
 
 #include "rcv.h"
 
-static char *SccsId = "@(#)v7.local.c  1.2 %G%";
+static char *SccsId = "@(#)v7.local.c  2.1 %G%";
 
 /*
  * Locate the user's mailbox file (ie, the place where new, unread
 
 /*
  * Locate the user's mailbox file (ie, the place where new, unread
@@ -36,7 +36,10 @@ findmail()
 demail()
 {
 
 demail()
 {
 
-       remove(mailname);
+       if (value("keep") != NOSTR)
+               close(creat(mailname, 0666));
+       else
+               remove(mailname);
 }
 
 /*
 }
 
 /*