Gentoo Archives: gentoo-user

From: Willie Wong <wwong@×××××××××.EDU>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] procmail+spamassassin user filters
Date: Wed, 15 Oct 2008 15:24:32
Message-Id: 20081015152434.GA3411@princeton.edu
In Reply to: Re: [gentoo-user] procmail+spamassassin user filters by David Rioja
1 On Wed, Oct 15, 2008 at 09:08:49AM +0200, Penguin Lover David Rioja squawked:
2 > Willie Wong escribi?:
3 >> On Tue, Oct 14, 2008 at 05:45:02PM +0200, Penguin Lover David Rioja
4 >> squawked:
5 >>
6 >>> 2.- I created ~/.procmail with the following contents:
7 >>>
8 >>> SHELL=/bin/sh
9 >>> MAILDIR=$HOME/.maildir
10 >>> DEFAULT=$MAILDIR
11 >>> LOGFILE=$MAILDIR/procmail.log
12 >>>
13 >>> | spamassassin --prefs-file=$HOME/.spamassassin/user_prefs
14 >>>
15 >>>
16 >>
17 >> Is that all you have in the recipe? I thought a recipe always begins
18 >> with 0: ? From my procmailrc file:
19 >>
20 >> -----------snip---------------
21 >> :0fw
22 >> | /usr/bin/spamc
23 >> ----------endsnip-------------
24 >>
25 >> since I use spamc/spamd. f makes it a filter and w waits for the
26 >> filter to finish.
27 >> W
28 >>
29 > Ok, you win :)
30 >
31 > I actually have this on .procmail
32 >
33 > INCLUDERC=$HOME/.spamassassin.rc
34 >
35 > instead of that line. In the file .spamassassin.rc I have:
36 >
37 > :0fw
38 > | spamassassin --prefs-file=$HOME/.spamassassin/user_prefs
39
40 Another really stupid question, when you sayin your .procmail file, do
41 you mean $HOME/.procmailrc ? I certainly hope you just have a typo,
42 and not named your file something that procmail does not know is the
43 config file.
44
45 (Was the ~/.maildir/procmail.log log file created?)
46
47 I am pretty sure the $HOME in your command should parse properly even
48 if procmail passes control to a subshell, so there shouldn't be any
49 reason why your recipe doesn't work.
50
51 W
52
53 --
54 "It was real. At least, if it wasn't real, it did support
55 them, and as that is what sofas are supposed to do, this,
56 by any test that mattered, was a real sofa. "
57 Sortir en Pantoufles: up 677 days, 13:59

Replies

Subject Author
Re: [gentoo-user] procmail+spamassassin user filters David Wei <davidwei@×××××××××××.cn>