home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / question / 14909 < prev    next >
Encoding:
Text File  |  1992-12-23  |  2.1 KB  |  44 lines

  1. Newsgroups: comp.unix.questions
  2. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!wupost!csus.edu!netcom.com!dman
  3. From: dman@netcom.com (Dallman Ross)
  4. Subject: Re: Question about .forward
  5. Message-ID: <1992Dec23.070927.18324@netcom.com>
  6. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  7. X-Newsreader: TIN [version 1.1 PL8]
  8. References: <1h7qk5INNfa7@moe.ksu.ksu.edu>
  9. Date: Wed, 23 Dec 1992 07:09:27 GMT
  10. Lines: 32
  11.  
  12. Rob Quinn (rjq@phys.ksu.edu) wrote:
  13. : In <1992Dec21.232605.10593@netcom.com> dman@netcom.com (Dallman Ross) writes:
  14. : > If I have a .forward file directing a cc of mail to another system, can
  15. : > I safely rm mbox [N.B.  I meant "my spool mail, not "mbox"] without fear 
  16. : > of losing mail that comes right at that moment?  Or does the .forward work 
  17. : > only *after* mail is deposited in the spool, which could result in such 
  18. : > a loss?
  19.  
  20. :  Yes, you can. A simple way to check would be to look at the access times on
  21. : the mailbox once you have installed your .forward.
  22. :  But why would you want to remove your mailbox? Why not just leave it there,
  23. : with zero length? On most systems the mail directory is world writable, so
  24. : someone else could create a mailbox for you with world readable/writable
  25. : perms. If you ever rm your .forward, you will start using this ``fake''
  26. : mailbox.
  27.  
  28. Good idea on the access times; and very illuminating on the fake
  29. spoolfile info!
  30.  
  31. The reason I want to rm the file is that I want to have a background
  32. script deal with this on a system where I am charged for access time.
  33. I don't want the clock ticking while I type "mail," "d*," "q" -- but
  34. I haven't figured out how to do that in a shell script.  Otoh, I
  35. *have* figured out how to "rm /usr/spool/mail/$USER" in a shell
  36. script.
  37.  
  38. --
  39.  __D_a l_l m a_n  _ R o_s s _ |dman@netcom.com  /or/  |"You sound like a man|
  40.  l  \\ l\\   /l  /\\  l\\   l |dross@well.sf.ca.us    |with a rubber nose." |
  41.  l   >)l \\ /ll /  \\ l \\  l |vox/fax: 1.510.645.1883| -- One-Lung Bill    |
  42.  l  // l  \X ll/--- \\l  \\ l |350 Perkins St., #108  |     Remmer (deceased)
  43. _l//______________________\\l_|Oakland,_CA__94610-3422|_____________________|_
  44.