Re: [exim] Compact $spam_report

Páxina inicial
Borrar esta mensaxe
Responder a esta mensaxe
Autor: Holger Mauermann
Data:  
Para: exim-users
Asunto: Re: [exim] Compact $spam_report
Jerome Eteve wrote:
> Anyone knows a shorter version of _SUMMARY_ ?


I have in Spamassassins local.cf:

clear_report_template
report _TESTS(,)_


and in Exims data ACL:

warn  ...
      set acl_m8  = Score=$spam_score; Gauge=$spam_bar;
      set acl_m9  = Tests='$spam_report'
      add_header  = X-Spam-Status: \
            ${if >{${eval:${strlen:$acl_m8}+${strlen:$acl_m9}}} {70} \
            {$acl_m8\n      $acl_m9} {$acl_m8 $acl_m9}}
      ...



which adds headers like this:

X-Spam-Status: Score=-1.2; Gauge=-; Tests='AWL'

X-Spam-Status: Score=8.3; Gauge=++++++++;
    Tests='KAM_STOCKOTC,RCVD_FORGED_WROTE,STRONG_BUY,TVD_STOCK1'



Holger