*This message was transferred with a trial version of CommuniGate(tm) Pro*
I have a filter that will change the online status of a message to
"delete from server". It doesn't work when the script runs from the
filter automatically but does run when the filter(s) are run from the
Mail > Perform Filter > Perform All Filters or the specific filter. It
also runs if the script is called from the AS menu.

Here's the script

<applescript>
property spamlabel : 7
property spamFolder : "Spam"

tell application "PowerMail 5.0b26"
        set msgs to current messages
        repeat with m in msgs
                try
                        if label of m is spamlabel then
                                set currentVersion to version as string
                                set baseVersion to first character of 
currentVersion as number
                                if baseVersion > 4 then
                                        move m to spam container
                                        else
                                        move m to message container spamFolder
                                end if
                                if online status of m is on server then
                                        set online status of m to marked for 
deletion
                                end if
                        end if
                end try
        end repeat
end tell
</applescript>

The move part of the script does happen, it's the online status part that
doesn't.

-- 
Andy Fragen


Reply via email to