Hushmail has a folder (“Junk”) that is their spam bucket. Unfortunately they also put good emails in it and I want to filter them. I used the following script, which is a variation on the one found here. As the rest of these scripts didn’t work for me either, I would like to know if this is the real script for Apple Mail on Snow Leopard.
on perform_mail_action(info) tell application "Mail" set _mailbox to mailbox "Junk" of account "Hushmail" repeat with _message in messages of _mailbox set _source to _message's source tell application "SpamSieve" set _isSpam to looks like spam message _source end tell if not _isSpam then set read status of _message to false set _message's mailbox to mailbox "Inbox" of account "Hushmail" end if end repeat end tell end perform_mail_action