Hi,
I'm having a problem with the following incoming mail filter setting
which worked flawlessly in 4.x:
[x] Filter incoming messages
Conditions:
Subject begins with "CONFIRM"
Account is mailinglist-admin
Status is not read
Status is not replied
Execute if all conditions are met
Actions:
Execute AppleScript "Handle Confirm message"
Set status to Replied
The "Handle Confirm message" AppleScript script reads as follows:
tell application "PowerMail 5.0b12"
set theMessages to current messages
repeat with msg in theMessages
my handleConfirm(msg)
end repeat
end tell
on handleConfirm(msg)
tell application "PowerMail 5.0b12"
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
The problem: Whereas the "set status to replied" action is actually
carried out (i.e., the filter does run on the respective messages), no
outgoing message is created like should be. It seems the AppleScript
either does not run at all or there are no "current messages" during
execution.
When I run the above AppleScript script manually on a message, it works
as expected and creates a new reply message in the out try with empty body.
As I said, the above filter worked flawlessly in PM 4.x. and stopped
working in 5.0 beta. Any hints?
Regards, Christian.