Several utilities can so that for you. bash shell does that (see below),   
on my redhat i've got a "messages" utility that gives the number of   
messages waiting for me [comes with the elm rpm], and some more for sure   
...

from the bash man page:
       MAIL   If this parameter is set  to  a  filename  and  the
              MAILPATH variable is not set, bash informs the user
              of the arrival of mail in the specified file.
       MAILCHECK
              Specifies how often (in seconds)  bash  checks  for
              mail.   The default is 60 seconds.  When it is time
              to check for mail, the shell does so before prompt-
              ing.  If this variable is unset, the shell disables
              mail checking.
       MAILPATH
              A colon-separated list of pathnames to  be  checked
              for  mail.  The message to be printed may be speci-
              fied by separating the pathname  from  the  message
              with  a `?'.  $_ stands for the name of the current
              mailfile.  Example:
              MAILPATH='/usr/spool/mail/bfox?"You            have
              mail":~/shell-mail?"$_ has mail!"'
              Bash  supplies  a  default value for this variable,
              but the location of the user  mail  files  that  it
              uses      is      system      dependent      (e.g.,
              /usr/spool/mail/$USER).
       MAIL_WARNING
              If set, and a file that bash is checking  for  mail
              has  been  accessed  since  the  last  time  it was
              checked, the message ``The  mail  in  mailfile  has
              been read'' is printed.


pascal


 -----Original Message-----
From: New Bie [SMTP:[EMAIL PROTECTED]]
Sent: Thursday, April 15, 1999 6:48 AM
To: [EMAIL PROTECTED]
Subject: you have mail message

Hello ppl,

How do i turn on the message "you have new mail" when a new mail
arrives? Presently, no such message is displayed.

Thanks
nB.

===
All are climbing this ladder of knowledge, some ahead of you,
some behind. Respect those who are ahead, they will help you.
Love those who are behind, they will support you.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

Reply via email to