[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Understanding Mutt + Fetchmail + Procmail



On Sun, Jan 21, 2001 at 05:37:28PM +0100 or thereabouts, Daniel de los Reyes wrote:
> I don't get a message saying if a folder (file) has new mail until I open it 
> (to late, that is just what I don't want to have to do)
> If I press c I get a list of all avaliable folders under $Home/Mail
> 
> How do I get notified of which folders contain new mail?
> 

What you're looking isn't in mutt nor procmail.  It's a feature of the shell
you're using.  For mine I'm using bash so doing a "man bash" gives

MAILPATH='/usr/spool/mail/bfox?"You have mail"'

which is a colon-separated list of file names to be checked for mail. So if you
want to be prompted about new mails just do this:

MAILPATH='/usr/spool/mail/bfox?"You have mail":/home/bfox/Mail/Inbox?"You
have mail in Mail/Inbox"'

and it'll inform you of which mailbox has new mails right from the shell
prompt.

Another thing you have to check out are procmail recipes.  I find this website
to be helpful:  http://www.ii.com/internet/robots/procmail/qs/

HTH.

-- 

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+-+-+-+
Key fingerprint = 9DE1 5825 77B4 FF45 7485  D3EB DCCF DE48 09B6 4426
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+--+-+-+-+-+-+

Who's watching the watchmen?

Attachment: pgpU3n2oFIhnE.pgp
Description: PGP signature


Reply to: