Re: mail filtering / qmail - tangent to "spam mail question"
Cool! I got it to work! Thanks!!!
-Paul
# cat .qmail
|maildrop .mailfilter Maildir/
# cat .qmail-ext
|maildrop .mailfilter mail/$EXT
# cat .mailfilter
if ( /^X-Spam-Status: Yes/ )
{
to $HOME/mail/SPAM/
}
else
{
to $HOME/$1
}
On Tue, 4 Jun 2002 00:20:08 -0400
"Paul Miller" <paul@pinheiro.tcimet.net> wrote:
> Do you know if maildrop can use qmail's variables? I'd like to avoid
> separate filter files for every .qmail-ext I have.
>
> Thanks!
> -Paul
>
> On Mon, 3 Jun 2002 22:18:46 -0500
> "Jamin W. Collins" <jcollins@asgardsrealm.net> wrote:
>
> > On Mon, 3 Jun 2002 23:00:42 -0400
> > "Paul Miller" <paul@pinheiro.tcimet.net> wrote:
> >
> > > I'm using qmail/rblsmtpd, qmailscanner, and spamassassin. All my
> > > incoming mail are marked with "X-Spam-Status:" and I'd like to
> > > have mail with spam status of "Yes" put into a separate maildir.
> > > I'm using qmail maildirs, and I'd like to continue using maildirs.
> > > How
> > > can I filter my mail using dot-qmail files?
> >
> > I do this with maildrop and a ~/.mailfilter file like so:
> >
> > xfilter "spamassassin -P"
> >
> > if ( /^X-Spam-Flag: YES/ )
> > {
> > to $DEFAULT/.Spam/
> > }
> >
> > and the following in your ~/.qmail file:
> >
> > | /usr/bin/maildrop
> >
> > --
> > Jamin W. Collins
> >
> >
> > --
> > To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> > with a subject of "unsubscribe". Trouble? Contact
> > listmaster@lists.debian.org
> >
>
>
> --
> To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Reply to: