• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Searching a Mail message
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Searching a Mail message


  • Subject: Re: Searching a Mail message
  • From: Luther Fuller <email@hidden>
  • Date: Sat, 2 Jun 2007 13:18:50 -0500

Mail's dictionary also has a 'content' property of a 'message'. You could read the content of a message, that use 'offset' to see if the content contains the address.

	if (offset of anAddress in theContent) > 0 then
		-- the message contains the address anAddress

If you want to find all addresses in a message, you might first find all "@" characters, using either offset or text item delimiters.

Even simpler, can you use a smart mailbox?

On Jun 2, 2007, at 9:40 AM, Jeffers wrote:

My understanding is that he wants to get addresses that are embedded
in the body of the message, not addresses in the headers.
Michelle

Yes that is correct, i want to search the body of the message for an email address. Any ideas?

Jeff
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
email@hidden
Archives: http://lists.apple.com/archives/applescript-users


This email sent to email@hidden

_______________________________________________ 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
  • Follow-Ups:
    • Re: Searching a Mail message
      • From: Michelle Steiner <email@hidden>
References: 
 >Re: Searching a Mail message (From: Jeffers <email@hidden>)

  • Prev by Date: Re: GUI TextEdit
  • Next by Date: Re: list-building performance
  • Previous by thread: Re: Searching a Mail message
  • Next by thread: Re: Searching a Mail message
  • Index(es):
    • Date
    • Thread