Henrik, > Hmm yes I was wondering about this... so $pms->{conf} isn't actually "per > message" then? Too busy to dive into that right now..
No, the $pms->{conf} is just another ref or shortcut to $main->{conf}. Changes there affect the global configuration. The calls to $pms->clear_test_state and $pms->test_log may be more appropriate to add auxilliary information to rule hits. Also, the $pms->got_hit can now accept a 'description' attribute (if needed) with more recent versions of SpamAssassin. Mark