begin Dirk Laurie quotation:
> When retrieving mail from a POP server, it gets dumped straight into
> my inbox, without passing through my .procmailrc. I can think of
> several solutions to this problem:
>
> 1. Instead of just invoking mutt, use a shell script that first
> calls fetchmail.
> Disadvantage: I need to quit and restart mutt every so often.
A suggestion from a local mutt user proved to be an excellent all-around
solution. In my .bashrc (or you can make it global if you like) I put:
alias m='fetchmail -d0; fetchmail && mutt && fetchmail -q'
The first fetchmail lets me see exactly how many messages are being
downloaded. The second fetchmail daemonizes by default in my
.fetchmailrc. The rest should be pretty clear.
This allows me to call mutt directly with 'mutt' or 'mutt -R' or I can
simply hit 'm' to call the alias.
This is not all that different from your shell script idea, but the
advantage is the daemonized fetchmail continues to pull new messages and
Mutt happily sees and reports them as long as you have mailboxes
defined.
--
Blue skies... Todd
| Get a bigger hammer! | Sometimes you get what you want. |
| http://www.mrball.net | Sometimes you get experience. |
| http://faq.mrball.net | --unknown origin |
PGP signature