[Linux-disciples] Monitoring the contents of ~/Mail

Adam Kessel linux-disciples@bostoncoop.net
Tue, 6 Jan 2004 16:09:15 -0500


On Tue, Jan 06, 2004 at 03:59:34PM -0500, Stephen R Laniel wrote:
> On Tue, Jan 06, 2004 at 03:57:08PM -0500, Adam Kessel wrote:
> > What do you mean, "Linux"?
> > mutt? gnome-panel? etc.?
> > If you mean mutt, use keyword mailboxes followed by the mailboxes you
> > want it to monitor.
> I think I'm talking about bash. E.g., you're at the command
> prompt, you press enter, and bash tells you 'you have new mail in
> /var/mail/slaniel'. I want it also to tell me when I have mail in
> /home/slaniel/Mail/linux-disciples.

Right. That's bash. bash watches the contents of $MAIL. But I don't know
of any way to have it watch more than one mailbox.  (a quick test of
colon delimited filenames in $MAIL reveals that that doesn't work).
There are a variety of other mailbox watching command line tools, as well
as panels, and of course the mutt mailboxes command, but I don't know any
way to have bash itself report on the contents of anything other than
$MAIL, which is just one file.
-- 
Adam Kessel
http://bostoncoop.net/adam