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 1Kq8Eh-0008Oh-Ri for garchives@archives.gentoo.org; Wed, 15 Oct 2008 15:24:32 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BF6B8E0475; Wed, 15 Oct 2008 15:24:29 +0000 (UTC) Received: from Princeton.EDU (postoffice05.Princeton.EDU [128.112.133.189]) by pigeon.gentoo.org (Postfix) with ESMTP id 55C50E0475 for ; Wed, 15 Oct 2008 15:24:29 +0000 (UTC) Received: from smtpserver2.Princeton.EDU (smtpserver2.Princeton.EDU [128.112.129.148]) by Princeton.EDU (8.13.8/8.13.8) with ESMTP id m9FFORHX014959 for ; Wed, 15 Oct 2008 11:24:27 -0400 (EDT) Received: from sep.dynalias.net (fez.Princeton.EDU [128.112.129.190]) (authenticated bits=0) by smtpserver2.Princeton.EDU (8.12.9/8.12.9) with ESMTP id m9FFOMci017474 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NOT) for ; Wed, 15 Oct 2008 11:24:26 -0400 (EDT) Received: by sep.dynalias.net (Postfix, from userid 1001) id 70AD63A644; Wed, 15 Oct 2008 11:24:34 -0400 (EDT) Date: Wed, 15 Oct 2008 11:24:34 -0400 From: Willie Wong To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] procmail+spamassassin user filters Message-ID: <20081015152434.GA3411@princeton.edu> Mail-Followup-To: gentoo-user@lists.gentoo.org References: <48F4BE7E.9060909@englobe-tec.com> <20081014172910.GA425@princeton.edu> <48F59701.4030407@englobe-tec.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <48F59701.4030407@englobe-tec.com> User-Agent: Mutt/1.5.16 (2007-06-09) X-Archives-Salt: fef8212b-de96-4943-b95e-8ea49113d6ec X-Archives-Hash: 2da3f6afb9b0706ee7a9f66d1f655b49 On Wed, Oct 15, 2008 at 09:08:49AM +0200, Penguin Lover David Rioja squawked: > Willie Wong escribi?: >> On Tue, Oct 14, 2008 at 05:45:02PM +0200, Penguin Lover David Rioja >> squawked: >> >>> 2.- I created ~/.procmail with the following contents: >>> >>> SHELL=/bin/sh >>> MAILDIR=$HOME/.maildir >>> DEFAULT=$MAILDIR >>> LOGFILE=$MAILDIR/procmail.log >>> >>> | spamassassin --prefs-file=$HOME/.spamassassin/user_prefs >>> >>> >> >> 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. >> W >> > Ok, you win :) > > I actually have this on .procmail > > INCLUDERC=$HOME/.spamassassin.rc > > instead of that line. In the file .spamassassin.rc I have: > > :0fw > | spamassassin --prefs-file=$HOME/.spamassassin/user_prefs 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. (Was the ~/.maildir/procmail.log log file created?) 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. W -- "It was real. At least, if it wasn't real, it did support them, and as that is what sofas are supposed to do, this, by any test that mattered, was a real sofa. " Sortir en Pantoufles: up 677 days, 13:59