mail.app scripting
mail.app scripting
- Subject: mail.app scripting
- From: Paul Wagland <email@hidden>
- Date: Fri, 16 Jan 2004 09:36:10 +0100
Hi all,
I have noticed quite a few messages floating through here recently
about scripting with Mail.app, so hopefully someone will know the
answer to the problem that I am having :-)
First, what I want to do is create a rule/action that will be run every
time that a mail is sent (problem 1). Secondly, I want this rule to
determine if the sent mail is in reply to a mail stored in our message
store (problem 2), and if so then to move the saved message from "Sent"
to the folder where the original message is located (problem 3).
The problems in order:
1. I can see how to add a rule, but that seems to only be executed when
new mail is received. How can I get my script to run after the mail has
been sent? Or do I have to create a script that will replace the send
command, and also send the e-mail as a part of that script?
2. I assume that once I get this message then I will get an "outgoing
message" class. How can I tell if this is a reply, or just a new mail?
If I can just wait for it to get to the "Sent" folder and then get a
"message" class this is not such an issue, since I can just look at the
"references" header.
3. Given a message ID, how can I find that message? Or do I just have
to trawl through all of the folders myself looking for that message?
Thanks in advance for any advice that you can offer...
Cheers,
Paul
[demime 0.98b removed an attachment of type application/pgp-signature which had a name of PGP.sig]
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.