From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1KqFeL-0005hV-HZ for garchives@archives.gentoo.org; Wed, 15 Oct 2008 23:19:30 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 608DFE03B8; Wed, 15 Oct 2008 23:19:26 +0000 (UTC) Received: from mail.newbread.tj.cn (unknown [117.11.97.99]) by pigeon.gentoo.org (Postfix) with ESMTP id 64905E03B8 for ; Wed, 15 Oct 2008 23:19:25 +0000 (UTC) Received: from biztripper-lgecw (unknown [203.247.145.54]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: davidwei) by mail.newbread.tj.cn (Postfix) with ESMTPSA id 9BDE370FD7 for ; Thu, 16 Oct 2008 07:16:15 +0800 (CST) Date: Thu, 16 Oct 2008 08:20:06 +0900 From: David Wei To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] procmail+spamassassin user filters Message-Id: <20081016082006.7a97f62b.davidwei@newbread.tj.cn> In-Reply-To: <20081015152434.GA3411@princeton.edu> References: <48F4BE7E.9060909@englobe-tec.com> <20081014172910.GA425@princeton.edu> <48F59701.4030407@englobe-tec.com> <20081015152434.GA3411@princeton.edu> Organization: Newbread X-Mailer: Sylpheed 2.5.0 (GTK+ 2.10.14; i686-pc-mingw32) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 8227a0c7-f288-4930-a727-950ecb0c292b X-Archives-Hash: 3bce09556aa774c8d9c2c2fdc21f54da One more tip, the .procmailrc file should belong and only belong to the m= ail owner user(right 700),procmail refuse to run when the .procmailrc 's = right is not properly set on my box. On Wed, 15 Oct 2008 11:24:34 -0400 Willie Wong wrote: > On Wed, Oct 15, 2008 at 09:08:49AM +0200, Penguin Lover David Rioja squ= awked: > > Willie Wong escribi?: > >> On Tue, Oct 14, 2008 at 05:45:02PM +0200, Penguin Lover David Rioja=20 > >> squawked: > >> =20 > >>> 2.- I created ~/.procmail with the following contents: > >>> > >>> SHELL=3D/bin/sh > >>> MAILDIR=3D$HOME/.maildir > >>> DEFAULT=3D$MAILDIR > >>> LOGFILE=3D$MAILDIR/procmail.log > >>> > >>> | spamassassin --prefs-file=3D$HOME/.spamassassin/user_prefs > >>> > >>> =20 > >> > >> Is that all you have in the recipe? I thought a recipe always begins > >> with 0: ? From my procmailrc file: > >> > >> -----------snip--------------- > >> :0fw > >> | /usr/bin/spamc > >> ----------endsnip------------- > >> > >> since I use spamc/spamd. f makes it a filter and w waits for the > >> filter to finish.=20 > >> W > >> =20 > > Ok, you win :) > > > > I actually have this on .procmail > > > > INCLUDERC=3D$HOME/.spamassassin.rc > > > > instead of that line. In the file .spamassassin.rc I have: > > > > :0fw > > | spamassassin --prefs-file=3D$HOME/.spamassassin/user_prefs >=20 > Another really stupid question, when you sayin your .procmail file, do > you mean $HOME/.procmailrc ? I certainly hope you just have a typo, > and not named your file something that procmail does not know is the > config file.=20 >=20 > (Was the ~/.maildir/procmail.log log file created?) >=20 > I am pretty sure the $HOME in your command should parse properly even > if procmail passes control to a subshell, so there shouldn't be any > reason why your recipe doesn't work.=20 >=20 > W >=20 > --=20 > "It was real. At least, if it wasn't real, it did support=20 > them, and as that is what sofas are supposed to do, this,=20 > by any test that mattered, was a real sofa. " > Sortir en Pantoufles: up 677 days, 13:59 >=20 ------------------------------- =CE=BA=C1=C1 David Wei =C4=FA=BF=C9=D2=D4=CD=A8=B9=FD=CF=C2=C3=E6=B5=C4=B7=BD=CA=BD=BA=CD=CE=D2=C1= =AA=CF=B5=A3=BA MSN: inadavid@hotmail.com Gtalk: inadavid@gmail.com Email: davidwei@newbread.tj.cn