[Ilugc] Re: mv NewMail mbox ??

  • From: bharathi@xxxxxxxxxxxxxxxxxxxx (Bharathi S)
  • Date: Wed, 7 Apr 2004 20:57:35 +0530 (IST)

On Wed, 7 Apr 2004, SaravanaKumar wrote:

How to manually move the new mails from /var/spool/mail/$USER to
$USER's mbox ?

cat /var/spool/mail/$USER >> $USER/mbox
echo ""> /var/spool/mail/$USER

BTW, why do u want to do it. Any new mail is stored in
/var/spool/mail and all read mails moved to $USER's mbox. Any
spceific reason for it?

I am writing small prg, which will list the mails from spool. After
read that move the mails to mbox. But I want to make it read mbox +
Show the new mail with out reading the spool.

Bye :)
-- 
Bharathi S, www.MidasComm.com,
Intel Lab,  TeNeT, IIT-Madras.

Known is drop, Unknown is OCEAN.


Other related posts: