Re: Getting body of an incoming Claris Emailer message
Re: Getting body of an incoming Claris Emailer message
- Subject: Re: Getting body of an incoming Claris Emailer message
- From: Nigel Garvey <email@hidden>
- Date: Tue, 13 Mar 2001 13:48:59 +0000
Christian Boyce wrote on Mon, 12 Mar 2001 21:23:48 -0800:
>
I am having a hard time grabbing the body of an incoming Claris Emailer
>
message. I want to set up an Action to run a script that does some things
>
with the body of the message, but drat it all, I can only do things with
>
the body of messages that are already here.
I had a similar problem with the script I use to edit these digests into
a legible and replytoable format. It's possible to read the body of a
filtered message but not to change it while it's coming in. I got round
this by diverting the messages to a particular folder in Emailer and then
running a script on the folder contents afterwards. It's possible to
arrange for an AppleScript to be run after new mail has been downloaded.
(Setup -> Preferences... -> New mail notification.)
>
I have tried...
>
>
tell application "Claris Emailer"
>
set themessages to the incoming messages
>
repeat with theMessage in themessages
>
set TheText to the content of theMessage
>
do stuff
>
end repeat
>
end tell
On the other hand, if your query's "How do I refer to the message that
triggered the mail action that's running this script?", it's:
tell application "Claris Emailer"
set theMessage to the filtered message
set theText to the content of theMessage
-- do stuff
end tell
NG