Gentoo Archives: gentoo-user

From: David Wei <davidwei@×××××××××××.cn>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] procmail+spamassassin user filters
Date: Wed, 15 Oct 2008 23:19:30
Message-Id: 20081016082006.7a97f62b.davidwei@newbread.tj.cn
In Reply to: Re: [gentoo-user] procmail+spamassassin user filters by Willie Wong
1 One more tip, the .procmailrc file should belong and only belong to the mail owner user(right 700),procmail refuse to run when the .procmailrc 's right is not properly set on my box.
2
3 On Wed, 15 Oct 2008 11:24:34 -0400
4 Willie Wong <wwong@×××××××××.EDU> wrote:
5
6 > On Wed, Oct 15, 2008 at 09:08:49AM +0200, Penguin Lover David Rioja squawked:
7 > > Willie Wong escribi?:
8 > >> On Tue, Oct 14, 2008 at 05:45:02PM +0200, Penguin Lover David Rioja
9 > >> squawked:
10 > >>
11 > >>> 2.- I created ~/.procmail with the following contents:
12 > >>>
13 > >>> SHELL=/bin/sh
14 > >>> MAILDIR=$HOME/.maildir
15 > >>> DEFAULT=$MAILDIR
16 > >>> LOGFILE=$MAILDIR/procmail.log
17 > >>>
18 > >>> | spamassassin --prefs-file=$HOME/.spamassassin/user_prefs
19 > >>>
20 > >>>
21 > >>
22 > >> Is that all you have in the recipe? I thought a recipe always begins
23 > >> with 0: ? From my procmailrc file:
24 > >>
25 > >> -----------snip---------------
26 > >> :0fw
27 > >> | /usr/bin/spamc
28 > >> ----------endsnip-------------
29 > >>
30 > >> since I use spamc/spamd. f makes it a filter and w waits for the
31 > >> filter to finish.
32 > >> W
33 > >>
34 > > Ok, you win :)
35 > >
36 > > I actually have this on .procmail
37 > >
38 > > INCLUDERC=$HOME/.spamassassin.rc
39 > >
40 > > instead of that line. In the file .spamassassin.rc I have:
41 > >
42 > > :0fw
43 > > | spamassassin --prefs-file=$HOME/.spamassassin/user_prefs
44 >
45 > Another really stupid question, when you sayin your .procmail file, do
46 > you mean $HOME/.procmailrc ? I certainly hope you just have a typo,
47 > and not named your file something that procmail does not know is the
48 > config file.
49 >
50 > (Was the ~/.maildir/procmail.log log file created?)
51 >
52 > I am pretty sure the $HOME in your command should parse properly even
53 > if procmail passes control to a subshell, so there shouldn't be any
54 > reason why your recipe doesn't work.
55 >
56 > W
57 >
58 > --
59 > "It was real. At least, if it wasn't real, it did support
60 > them, and as that is what sofas are supposed to do, this,
61 > by any test that mattered, was a real sofa. "
62 > Sortir en Pantoufles: up 677 days, 13:59
63 >
64
65
66 -------------------------------
67 魏亮 David Wei
68
69 您可以通过下面的方式和我联系:
70 MSN: inadavid@×××××××.com
71 Gtalk: inadavid@×××××.com
72 Email: davidwei@×××××××××××.cn

Replies

Subject Author
Re: [gentoo-user] procmail+spamassassin user filters David Rioja <rams@×××××××××××.com>