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 :)
>
Well I still think my config file is by *far* the simplest:-
mutt mutt-users@xxxxxxxx
Not to mention that it provides much more than just the mail filtering
configuration, it does the followiing:-
My filter.pl script uses it to forward mail To: or Cc:
mutt-users@xxxxxxxx to a mailbox called mutt.
A trivial script allows mutt to have the alias 'mutt' for sending
mail to mutt-users@xxxxxxxx
And the following lines in muttrc set up lists and subscribe
lists `awk '!/^#/ {printf("%s ", $2)}' <~/.mutt/lists`
subscribe `awk '!/^#/ {printf("%s ", $2)}' <~/.mutt/lists`
--
Chris Green