On 7/12/04 10:51 pm, "Scott Haneda" <[EMAIL PROTECTED]> wrote:

> on 12/7/04 4:09 AM, Barry Wainwright at [EMAIL PROTECTED] wrote:
> 
>> On 7/12/04 8:17 am, "Scott Haneda" <[EMAIL PROTECTED]> wrote:
>> 
>>> on 12/7/04 12:02 AM, Scott Haneda at [EMAIL PROTECTED] wrote:
>>> 
>>>> I have a web form that will be sending me emails that contain a single
>>>> email
>>>> address in the body, I want to somehow automate the process of getting that
>>>> email address into a group, how can I do this?
>>> 
>>> I should mention, the subject has a passcode in it, that is how the script
>>> can identify these emails from others.
>> 
>> OK, identifying the mail is easy - do that with a rule.
>> 
>> Then, where in the body does the email address appear? You could parse the
>> whole mail looking for it, but that is less certain than extracting it from
>> a known location.
> 
> The body of the email only contains one single email adress, your code below
> will work on that, but I suspect it is overkill since I just need the entire
> string.
>  
>> This will extract the address, but I don't guarantee it's accuracy on all
>> addresses, especially if they contain non-ascii charcacters:
>> 
>> 
>> set thebody to "blah blah blah blah blah blah
>> blah blah blah blah blah. blah blah blah <[EMAIL PROTECTED]>
>> blah blah blah blah blah "
>> set AppleScript's text item delimiters to {"@"}
>> set theBits to text items of thebody
>> set theAddress to {get last word of item 1 of theBits, get first word of
>> item 2 of theBits} as string
> 
> How do I set the body of the email to a variable?

Set theMessage to item 1 of (get current messages)
Set theaddress to content of theMessage
> 

-- 
Barry Wainwright
Microsoft MVP (see http://mvp.support.microsoft.com for details)
Seen the All-New Entourage Help Pages? - Check them out:
        <http://www.entourage.mvps.org/>


-- 
To unsubscribe:                     
<mailto:[EMAIL PROTECTED]>
archives:       
<http://www.mail-archive.com/entourage-talk%40lists.letterrip.com/>
old-archive:       
<http://www.mail-archive.com/entourage-talk%40lists.boingo.com/>

Reply via email to