Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Searching a Mail message



As I said ...
first find all "@" characters, using either offset or text item delimiters


Second ...

Did you hear about the brand new, right-out-of-law-school defense attorney whose first client was Joan of Arc? ... He got her a lighter sentence.

On Jun 2, 2007, at 1:55 PM, Michelle Steiner wrote:

On Jun 2, 2007, at 11:18 AM, Luther Fuller wrote:

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.

But how do you parse it to determine whether it is an email address or some other use of the "@" character?


"Meet me @2PM @45th St and Broadway."

-- Michelle

--
"As democracy is perfected, the office of president represents, more and more closely, the inner soul of the people. On some great and glorious day the plain folks of the land will reach their heart's desire at last and the White House will be adorned by a downright moron."


.... H.L. Mencken ...

_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (applescript- email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/applescript-users/ 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: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >Re: Searching a Mail message (From: Jeffers <email@hidden>)
 >Re: Searching a Mail message (From: Luther Fuller <email@hidden>)
 >Re: Searching a Mail message (From: Michelle Steiner <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.