Re: [Exim] Passing message to run{}?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Bradford Carpenter
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [Exim] Passing message to run{}?
On Sat, 20 Mar 2004 17:42:01 -0800, Bradford Carpenter wrote:

> Want to try a Bayesian spam tool (spamprobe) that normally uses
> procmail. It accepts an email message on stdin and puts the text of a
> spam rating header on stdout. Seems like exim could handle this itself.



In case anyone else is actually interested in getting exim to do
something like this, came up with a working solution by following up on
a clue from a post by Silmar Marca. Ended up with this in the system
filter:

headers add "X-SPFlag: ${run{/opt/local/etc/eximconfig/scanmsg.sh \
${quote:${message_headers}${readfile{/opt/local/var/spool/exim/input/${message_id}-D}}}}
\
{$value}{fail}}"

_____

#!/bin/sh
#scanmsg.sh

echo "$1" | /opt/local/bin/spamprobe -M -d
/Users/Shared/Library/.spamprobe -g x-spflag train

_____

It's not SPF, but hey, maybe someone will be able to use it!

Best Regards,
Brad