[This is a repost of a bug description sent to CTM support some days ago]

Performing the following filter on an incoming message sets the "Incoming
messages" folder bold and lists an unread message count of -1.

Filter setup:

Conditions: ---
[Subject] [begins with] "Confirm"
[Account] [is] [<name>]
[Status] [is not] [Read]
[Status] [is not] [Replied]

Execute if [all conditions are met]

Actions: ---
[Execute AppleScript] [<code: see below>]
[Set status to] [Replied]

[x] Don't apply subsequent filters to this message

Here's the AppleScript code: ------

tell application "PowerMail 5 Beta"
        set theMessages to current messages
        repeat with msg in theMessages
                my handleConfirm(msg)
        end repeat
end tell

on handleConfirm(msg)
        tell application "PowerMail 5 Beta"
                set replyMsg to (reply to msg without replying to all)
                set content of the replyMsg to ""
                set status of the replyMsg to waiting
        end tell
end handleConfirm

Regards, Christian.


Reply via email to