Jason Helfman <[EMAIL PROTECTED]> wrote:
>
> When I quit any program, I may get a msg that says "You have mail in
> /var/spool/mail/$USER
So what does this have to do with Mutt?
> Is their a way for get sendmail to check the other boxes. I'm only in
> a console window, so this would be helpful.
This is a function of your shell. Most of them will check multiple
mailboxes, if you tell them to. For instance, in tcsh:
mail The names of the files or directories to check for incoming
mail, separated by whitespace, and optionally preceeded 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 multiple 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, in order to prevent redundant 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 appropriate. 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.'
In ksh (and probably bash):
MAIL If this parameter is set to the name of a mail
file and the MAILPATH parameter is not set, the
shell informs the user of arrival of mail in the
specified file.
MAILCHECK This variable specifies how often (in seconds) the
shell checks for changes in the modification time
of any of the files specified by the MAILPATH or
MAIL parameters. The default value is 600
seconds. When the time has elapsed the shell
checks before issuing the next prompt.
MAILPATH A list of file names separated by colons (:). If
this parameter is set, the shell informs the user
of any modifications to the specified files that
have occurred within the last MAILCHECK seconds.
Each file name can be followed by a ? and a
message to be printed, in which case the message
undergoes parameter and command substitution with
the parameter $_ defined as the name of the
changed file. The default message is you have
mail in $_.
--
David DeSimone | "The doctrine of human equality reposes on this:
[EMAIL PROTECTED] | that there is no man really clever who has not
Hewlett-Packard | found that he is stupid." -- Gilbert K. Chesterson
UX WTEC Engineer | PGP: 5B 47 34 9F 3B 9A B0 0D AB A6 15 F1 BB BE 8C 44