From owner-freebsd-questions@FreeBSD.ORG Sun Apr 11 11:44:27 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99D6B16A4CE for ; Sun, 11 Apr 2004 11:44:27 -0700 (PDT) Received: from Gina.esfm.ipn.mx (esfm.ipn.mx [148.204.102.61]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3B98E43D39 for ; Sun, 11 Apr 2004 11:44:27 -0700 (PDT) (envelope-from mrspock@esfm.ipn.mx) Received: from Gina.esfm.ipn.mx (localhost [127.0.0.1]) by Gina.esfm.ipn.mx (8.12.10/8.12.10) with ESMTP id i3BIi8Ps040319; Sun, 11 Apr 2004 13:44:08 -0500 (CDT) (envelope-from mrspock@esfm.ipn.mx) Received: from localhost (mrspock@localhost)i3BIi8de040316; Sun, 11 Apr 2004 13:44:08 -0500 (CDT) (envelope-from mrspock@esfm.ipn.mx) X-Authentication-Warning: Gina.esfm.ipn.mx: mrspock owned process doing -bs Date: Sun, 11 Apr 2004 13:44:08 -0500 (CDT) From: Eduardo Viruena Silva To: Peter Schuller In-Reply-To: <200404112000.04911.peter.schuller@infidyne.com> Message-ID: <20040411133941.P40153@Gina.esfm.ipn.mx> References: <20040410140222.H80144@Gina.esfm.ipn.mx> <200404112000.04911.peter.schuller@infidyne.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-questions@freebsd.org Subject: Re: spam in an inbox. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Apr 2004 18:44:27 -0000 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.