Re: How to extract the email address in a the message body
Re: How to extract the email address in a the message body
- Subject: Re: How to extract the email address in a the message body
- From: email@hidden (Randal L. Schwartz)
- Date: 08 Nov 2004 05:44:33 -0800
>>>>> "Leon" == Leon Chen <email@hidden> writes:
Leon> I do not mean those addresses in the header. I am looking at picking
Leon> up those within the message body which i believe need a certain
Leon> search mechanism called from Applescript. not sure it can be done.
"Email addresses in text with unknown boundary delimiters" is an
extremely difficult problem, mostly because email addresses are
incredibly complex. For example, you'd have to locate
merlyn (that is me)
@
stonehenge (not the one in england, the other one)
. (that is a dot!)
com
Yes, all on separate lines. That's a valid email address. Even with
the comments. So is this-- fred&email@hidden and it's an auto
responder, so go ahead and try it. But wait... was the "this--"
part of the email address or not? You can't tell! The delimiters
are not inherent in the message.
So, if your problem is narrower than that, it might help to narrow
down what you are willing to look for and willing to reject.
That'll make it
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<email@hidden> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden