Luis,

> The question is how to tell amavis that always put califications of
> all tests.  Or does amavis use a cut-circuit and not all tests are done?

It does put the complete list of tests as provided by SpamAssassin
into the X-Spam-Status: ...tests=[...] header field.
No short-circuiting or truncation is done by amavisd.

> $sa_tag_level_deflt = -10;

Setting it to undef is more universal, always inserts X-Spam-*
header fields:
  $sa_tag_level_deflt = undef;

> If a clean email:
> X-Spam-Flag: NO
> X-Spam-Score: -2.553
> X-Spam-Level:
> X-Spam-Status: No, score=-2.553 tagged_above=-10 required=0.5
>         tests=[AWL=0.347, BAYES_00=-2.599, DKIM_VERIFIED=-0.3,
>         SPF_PASS=-0.001]
>
> The fact is I'd like that test headers were added no matters if is a spam
> or not.

The 'tests=[AWL=0.347, BAYES...SPF_PASS=-0.001]'  _is_ a complete list.

> The fact is I'd like that test headers were added no matters if is a spam
> or not.  I'm interested in DCC and PYZOR.  If I run spamassassin from
> command line it seems that headers are added:
>
> X-Spam-Level: ********************************
> X-Spam-Status: Yes, score=32.2 required=5.0 tests=AWL,DCC_CHECK,
>         DIGEST_MULTIPLE,HELO_DYNAMIC_IPADDR,HTML_MESSAGE,PYZOR_CHECK,
>         RCVD_IN_BL_SPAMCOP_NET,RCVD_IN_SORBS_DUL,RCVD_IN_XBL,SPF_HELO_PASS,
>         URIBL_AB_SURBL,URIBL_JP_SURBL,URIBL_OB_SURBL,URIBL_SC_SURBL
>         autolearn=spam version=3.1.9
> X-Spam-Pyzor: Reported 193342 times.

I see, you want the X-Spam-Pyzor header field. That is not currently possible,
amavisd does its own header section editing, and caters only for a more common
set of X-Spam-* header fields. If a SA plugin provides a tag value (in SA
terminology, e.g. such as provided by Mail::SpamAssassin::Plugin::AWL,
these strings can be obtained through supplementary_info access mechanism
in amavisd. The X-Spam-Pyzor is a bit harder to get to, a hack would be 
needed.

  Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to