Petr Vokac wrote:
> Mark Martinec wrote:
>> M.Lewis,
>>
>>
>>> Is there a way to include the score on the
subject line ?
>>> Something along the lines of:
>>> $sa_spam_subject_tag = '*****SPAM*****
[$score] ';
>>>
>> It currently is not configurable. You will need to
edit
>> the program - in sub
add_forwarding_header_edits_per_recip
>> ... $hdr_edits->edit_header('Subject', ...
>>
>> Mark
>>
>
> I use following patch to add score in the subject -
first part. The
> second part it tries to remove multiple [SPAM] tags in
the subject (I
> don't like subject like "***SPAM*** [SPAM] This
is original subject").
> But changing subject probably break DomainKeys or DKIM
signagure...
>
> Petr
>
> --- amavisd-new-2.4.1/amavisd 2006-05-09
00:02:14.000000000 +0200
> +++ amavisd-new-2.4.1/amavisd 2006-05-09
00:10:58.000000000 +0200
>  -8341,6 +8341,8 
> $subject_insert, $any_undecipherable,
$hold);
> }
> $subject_insert .= $subject_tag if $do_subj;
> + $subject_insert =~ s/\s*$// if $do_subj;
> + $subject_insert .= sprintf("(%.1f)
",$spam_level+$boost) if
> $do_subj and defined $spam_level;
> }
> my($key) = join("\000", map {defined
$_ ? $_ : ''} (
> $do_tag_virus_checked, $do_tag_virus,
$do_tag_banned, $do_tag_badh,
>  -8403,7 +8405,7 
> if ($do_subj || $do_subj_u) {
> if (defined
$msginfo->orig_header_fields->{'subject'}) {
> $hdr_edits->edit_header('Subject',
> - sub { $_[1]=~/^([ \t]?)(.*)\z/s;
'
> '.$subject_insert.$2 });
> + sub { $_[1]=~/^([
>
\t]?)([\[\*]*SPAM[\]\*]*\(?\d*\.*\d*\)?\s*)*(.*)
z/s; '
> '.$subject_insert.$3 });
> } else { # no Subject header field present,
insert one
> $subject_insert =~ s/[ \t]+\z//; # trim
> $hdr_edits->append_header('Subject',
$subject_insert);
>
>
Thanks Peter & Mark. I'll give these a whirl.
Thanks,
Mike
--
IBM: Ill'manners Being Mandatory
23:35:01 up 2 days, 3:29, 7 users, load average: 0.51,
0.73, 0.48
Linux Registered User #241685 http://counter.li.org
_______________________________________________
AMaViS-user mailing list
AMaViS-user lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amav
is.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/ho
wto/
|