euglug.org

[Eug-lug] More advanced procmail voodoo

작성자

카테고리:



Rob HudsonSat Dec 10 13:21:21 PST 2005

I think I have a similar question for procmail while we're at it...  I'm 
using dspam for spam filtering.  It gives headers of the form:

	X-DSPAM-Result: Spam
	X-DSPAM-Confidence: 0.5065
	X-DSPAM-Probability: 1.0000
	X-DSPAM-Signature: some kind of hash

I'd like to filter those with result=Spam and with a confidence above a 
certain threshold to /dev/null since I'm pretty comfortable I never want 
to see those.  The ones with lower confidence I may want to save in case 
  of a false positive for spam.

I've filtered on a single header before but never two.  How do you do that?

Thanks,
Rob

T. Joseph CARTER wrote:
> If you never thought you'd see the day Joseph ASKS how to use procmail
> rather than ANSWERING, today is the day.  ;)  I have no clue how to do
> this easily..
>