When using the Not Spam agent in a R6,R7 or R8 mailfile, the item is removed from the Junkmail folder but not Added to the Inbox Folder. The Item still appears in the All Documents view.
I have done some investigation into this, and found the cause the be a loop in the gUserReport function of the SpamAssassin Script Library. The Loop seems to look up a View to confirm the ($JunkMail) folder exists, but the loop is never entered as they condition syntax seems to be floored. This results in the PutInFolder code being missed, while the RemoveFromFolder is still run.