David Nicol wrote:
$transaction->header->add('X-Spam-Status', $spamreport)

i inserted $spamreport to spamassassin plugin like this (sorry im no programmer):

$transaction->header->add('X-Spam-Status',
                           "$flag, hits=$hits required=$required\n" .
                           "\ttests=$tests", 0, "$spamreport");

then i got this:

eval Global symbol "$spamreport" requires explicit package name at ./plugins/spamassassin line 221.

i don't have any report header in my spamassassin local.cf

???

please help,

thank you.


based on example of

http://wiki.qpsmtpd.org/plugins:spam:mailinglist_simple



On Tue, Mar 10, 2009 at 9:27 PM, ari x <warnet_siapa_...@yahoo.com.sg> wrote:
hi,

is it possible to add header X-Spam-Report from qpsmtpd on email header?
how?

qpsmtpd:
X-Spam-Status: No, hits=7.9 required=8.0

tests=BAYES_50,RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_PBL,RCVD_IN_XBL,RDNS_DYNAMIC,TVD_RCVD_IP

qmailscanner?
X-Spam-Report: SA TESTS
 2.8 TVD_PH_SUBJ_URGENT     TVD_PH_SUBJ_URGENT
 0.0 UNPARSEABLE_RELAY      Informational: message has unparseable relay
lines
 1.6 URG_BIZ                BODY: Contains urgent matter
 0.7 SARE_URGBIZ            BODY: Contains urgent matter
-2.6 BAYES_00               BODY: Bayesian spam probability is 0 to 1%
                           [score: 0.0000]
 0.2 AWL                    AWL: From: address is in the auto white-list

thank you.





Reply via email to