[linux] Re: Foutieve melding "you have new mail"

Kees Theunissen theuniss op rijnh.nl
Di mei 17 20:13:35 CEST 2005


On Tue, 17 May 2005, Johan Wevers wrote:

>Roeland Th. Jansen wrote:
>
>>e.e.a. staat los van biff
>
>Wie dan?

Je shell bijvoorbeeld.
In je eerste mailtje schreef je dat je biff had uitgezet in /etc/csh.login.
Blijkbaar gebruik je csh.

Eens kijken wat er in de csh(1) manpage te vinden is.
Hebbes. De 'mail' enviroment variabele:

       mail    The names of the files or directories to check for
               incoming  mail,  separated  by   whitespace,   and
               optionally  preceded  by  a  numeric word.  Before
               each prompt, if 10 minutes have passed  since  the
               last  check,  the  shell checks each file and says
               `You have new mail.' (or, if mail contains  multi-
               ple  files,  `You  have new mail in name.') if the
               filesize is greater than zero in size  and  has  a
               modification time greater than its access time.

               If  you are in a login shell, then no mail file is
               reported unless it has  been  modified  after  the
               time  the  shell has started up, to prevent redun-
               dant notifications.  Most login programs will tell
               you  whether or not you have mail when you log in.

               If a file specified in mail is  a  directory,  the
               shell  will  count each file within that directory
               as a separate message, and will report `You have n
               mails.'  or  `You have n mails in name.' as appro-
               priate.  This functionality is provided  primarily
               for those systems which store mail in this manner,
               such as the Andrew Mail System.

               If the first word of mail is numeric it  is  taken
               as a different mail checking interval, in seconds.

               Under  very  rare  circumstances,  the  shell  may
               report  `You  have mail.' instead of `You have new
               mail.'

Soortgelijke functionaliteit vind je ook in bash.
Zoek daar naar de enviroment variabelen MAIL, MAILCHECK en MAILPATH.



Groeten,

Kees.

-- 
Kees Theunissen
F.O.M.-Instituut voor Plasmafysica "Rijnhuizen", Nieuwegein
E-mail: theuniss op rijnh.nl,     Tel: 030-6096724,     Fax: 030-6031204



More information about the Linux mailing list