Re: Mail not triggering rule script?
Re: Mail not triggering rule script?
- Subject: Re: Mail not triggering rule script?
- From: Michelle Steiner <email@hidden>
- Date: Thu, 2 Aug 2007 15:04:45 -0700
On Aug 2, 2007, at 2:15 PM, Jakob Peterhänsel wrote:
Funny thing is why the script does not work when automatically
fired, but does when I manually Apply Rules.
Also, I just re-created the rule, and now it plays the sound in the
Play Sound action, but does still not fire the script.. hmm..
One obvious possibility is that there is something about the incoming
message that does not trigger the rule.
After reviewing the script itself, I can't see any reason that it
won't trigger, unless if the message it is replying to doesn't have a
"reply to" header and the script fails silently. If that's the case,
you need to check for that header, either with a try block or with an
if-then construct.
This:
try
set theHeader to (content of header "reply-to") of thisMessage
on error
set theHeader to (content of header "from") of thisMessage
end try
Or this:
if (content of header "reply-to") of thisMessage exists then
set theHeader to (content of header "reply-to") of thisMessage
else
set theHeader to (content of header "from") of thisMessage
end if
-- Michelle
--
Sex is a lot like bridge. If you don't have a good partner, then
you'd better have a good hand.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden