by Michael » Thu Apr 28, 2005 1:20 pm
I'm not aware of one. The problem is that the "Classify as Junk" portion updates the Bayesian filter definitions before moving the message. There is no method for doing this from PocoScript, if there were then it would be possible to do this. I have asked for such a function but this will probably have to wait for a general PocoScript upgrade (due, I believe, in the next major release). An alternative and possible interim measure would be to have a command tag that could execute this action on the current message.
The closest you could come would be to add an "OnAdd" event to the "Junk Mail" mailbox. This would cause every sender whose message was placed in your junk mail mailbox to be added to the junk sender's list (the script could check so that it didn't duplicate entries). This would, however, be a problem if you ever had a false positive.