Re: Recommended mail filters for use with mutt?
On Wed, Apr 02, 2008 at 10:24:12PM +0200, Vladimir Marek wrote:
> > > Have a look at maildrop, it's filter file is not _that_ simple, but
> > > I like it more than procmail.
> >
> > I think its getting the regexps right. Otherwise its quite easy:
> >
> > if (/^Sender: owner-mutt-users@mutt\.org$/)
> > {
> > to "$HOME/Mail/IN-mutt-users/"
> > }
>
> How much easier than
>
> :0:
> * /^Sender: owner-mutt-users@mutt\.org$
> $HOME/Mail/IN-mutt-users/
>
>
> Sorry couldn't hold myself :)
One of the reasons *some* people say procmail is like line noise.
Example.
You are using maildir - signified by the slash after ...mutt-users/ but
you have also told procmail to use locking - signified by the colon
after :0: - you only need locking on an mbox style mailbox.
So correct would be:
:0
* /^Sender: owner-mutt-users@mutt\.org$
$HOME/Mail/IN-mutt-users/
--
Chris.
======