Thanks for the tip Mark.

I modified amavisd:

my($do_tag) = !$bypassed && (
                      $blacklisted || !defined $tag_level ||  
$tag_level eq '' ||
                     ($spam_level+$boost + ($whitelisted?-10:0) >=  
$tag_level));
       $DO_TAG = 1;
       my($do_tag2,$do_tag3,$do_kill) =...

And my amavisd.conf:

$sa_tag_level_deflt  = 4.0;
$sa_tag2_level_deflt = 5.2;
$sa_tag3_level_deflt = 6.0;
$sa_kill_level_deflt = 8.01;

@spam_subject_tag_maps  = ('[possible-spam: _SCORE_] ');
@spam_subject_tag2_maps = ('***SPAM*** _SCORE_ (_REQD_) ');
@spam_subject_tag3_maps = ('***BLATANT*SPAM**** _SCORE_ (_REQD_) ');

When I sent a test email that is under 4.0 (normally would not have  
X-Spam* headers added) the headers were successfully added, but the  
possible-spam subject tag was added even though the email had not hit  
4.0 or higher.

Shouldn't the headers have been added but the subject left un-modified  
since it had not hit the tag_level_deflt of 4.0?

        X-SPAM-FLAG:            NO
        X-SPAM-LEVEL:           ***
        X-SPAM-SCORE:           3.274
        X-SPAM-STATUS:          No, score=3.274 tagged_above=4

Quoting "Mark Martinec" <[EMAIL PROTECTED]>:

> Ryan,
>
>> Does anyone know of a way to get the tag2 level to not set
>> X-Spam-Flag to YES?
>
> Not without tweaking the code
> (in sub add_forwarding_header_edits_per_recip).
>
>> I would like to have 2 levels at which all X-Spam headers are inserted
>> but the Spam-Flag is NO so that I can have clean email with headers
>> in-tact but no Subject modification and a [possible-spam] level that
>> also has X-Spam-Flag set to NO.
>
> See my other today's reply.
>
>   Mark
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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/
>

-- 
Ryan D. McGuire
c: (508) 517-1841
h: (214) 432-6834
[EMAIL PROTECTED]
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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