Re: Searching a Mail message
Re: Searching a Mail message
- Subject: Re: Searching a Mail message
- From: Jeffers <email@hidden>
- Date: Fri, 1 Jun 2007 15:14:49 +0100
Hi Luther,
Yeah the messages are just on the Clients machine. I currently have AppleScript to get the selected message in Mail, and read the contents of the message, and from this text i want to find the email address in it. Its for the scenario where i get an email from an automatically generated response email with someones email address in the text of the content. (lets say a booking site and its from
email@hidden and the enquiry email address is in the text of the message - from
email@hidden). I want to write a plugin for Mail so that it does this for me instead of having to copy and paste address into new messages.
I'm not sure what the extensions of message files are.
How should i tackle this problem?
Thanks,
Jeff
On 6/1/07, Luther Fuller
<email@hidden> wrote:
Why not just use Spotlight? I can think of some reasons why you
can't, but I need to know more.
Are your messages stored within a mail client?
Or are they simply documents in a Finder folder?
What is the file extension of the message files?
In case you are curious ... Spotlight cannot search contents of .emlx
files.
... but there is a work-around in AppleScript.
On Jun 1, 2007, at 8:17 AM, Jeffers wrote:
> Hi,
> I'm after getting the content of a Mail message and want to search
> the content for an email address (email@hidden). Are there
> any helper methods in AppleScript in which to do this. I already
> tried parsing the message content but that didnt seem to work.
>
> Any help would be appreciated,
> Thanks,
> Jeff
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> AppleScript-Users mailing list (applescript-
> email@hidden
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to
email@hidden
--
Johnny Utah: You're sayin' the FBI's gonna pay me to learn to surf?
_______________________________________________
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