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