[ubuntu-it] Notifica mail
Matteo Riondato
matteo a freebsd.org
Mar 21 Mar 2006 12:42:32 UTC
On Tue, Mar 21, 2006 at 12:25:24PM +0100, Walter Valenti wrote:
> Avrei la necessità, ogni volta che apro una shell, di verificare in automatico
> la presenza di nuove mail (come avviene al login).
>
> Pensavi di aggiungere in ".bashrc" una verifica sulle dimensioni di
> "/var/mail/xxx".
Segnalo le seguenti variabili d'ambiente, dorebbero fare al caso tuo.
MAILCHECK
How often (in seconds) that the shell should check for mail in the
files specified in the MAILPATH or MAIL variables. The default is
60 seconds. When it is time to check for mail, the shell does so
before displaying the primary prompt. If this variable is unset,
or set to a value that is not a number greater than or equal to
zero, the shell disables mail checking.
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.
MAILPATH
A colon-separated list of filenames which the shell
periodically checks for new mail. Each list entry can specify
the message that is printed when new mail arrives in the mail
file by separating the file name from the message with a `?'.
When used in the text of the message, $_ expands to the name
of the current mail file.
Ciao
--
Matteo Riondato
FreeBSD Committer (http://www.freebsd.org)
G.U.F.I. Staff Member (http://www.gufi.org)
FreeSBIE Developer (http://www.freesbie.org)
Maggiori informazioni sulla lista
ubuntu-it