You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Mark Martinec <Ma...@ijs.si> on 2010/02/01 21:41:24 UTC
Re: _TOKENSUMMARY_ not working in 3.3.0?
On Saturday 30 January 2010 23:00:45 Michael Schaap wrote:
> In other words, _TOKENSUMMARY_ is consistently replaced by "Bayes not
> run.". Bayes *is* running OK. Messages are scored correctly, and the
> _HAMMYTOKENS(5)_ and _SPAMMYTOKENS(5)_ placeholders are correctly filled
> in.
Please open a bug report. The following patch should fix it:
--- lib/Mail/SpamAssassin/Plugin/Bayes.pm (revision 905404)
+++ lib/Mail/SpamAssassin/Plugin/Bayes.pm (working copy)
@@ -832,7 +832,8 @@
});
$permsgstatus->set_tag ('TOKENSUMMARY', sub {
- if( defined $self->{tag_data}{BAYESTC} )
+ my $bayestc = $permsgstatus->get_tag('BAYESTC');
+ if( defined $bayestc || $bayestc ne '' )
{
my $tcount_neutral = $permsgstatus->{tag_data}{BAYESTCLEARNED}
- $permsgstatus->{tag_data}{BAYESTCSPAMMY}
Mark