Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 11 Apr 2004 13:44:08 -0500 (CDT)
From:      Eduardo Viruena Silva <mrspock@esfm.ipn.mx>
To:        Peter Schuller <peter.schuller@infidyne.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: spam in an inbox.
Message-ID:  <20040411133941.P40153@Gina.esfm.ipn.mx>
In-Reply-To: <200404112000.04911.peter.schuller@infidyne.com>
References:  <20040410140222.H80144@Gina.esfm.ipn.mx> <200404112000.04911.peter.schuller@infidyne.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 11 Apr 2004, Peter Schuller wrote:

> > How can I do that?
> >
> > Of course, I can make a program that decides where each message starts and
> > where it ends, save it in a file and then filter it with spamassassin and
> > with the filtered file use grep to find "X-Spam-flag: YES to discard this
> > message.
> >
> > I think it is too complicated... Is there an easier solution?
>
> If you can find a mailbox format converter (I'm sure there are a few but I
> haven't checked), you could convert it to Maildir and easily script the
> operation as with a Maildir each message will be a separate file. That way
> you don't have to do the parsing.
>

Thank you, Peter.

The problem was already solved with formail & procmail.

formail can process the mailbox --as you suggest-- and procmail
calls spamassassin in its rules.  Once the messages are
classified, procmail filters spam.

Thanks.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040411133941.P40153>