Re: Vacation Mail script
Re: Vacation Mail script
- Subject: Re: Vacation Mail script
- From: Michelle Steiner <email@hidden>
- Date: Tue, 23 Mar 2004 21:29:44 -0700
On Mar 23, 2004, at 8:24 PM, Walter Ian Kaye wrote:
to parse_the_sender(sender_string)
set {tid, text item delimiters} to {text item delimiters, {"<"}}
set email_sender to text item 2 of the_sender
set text item delimiters to tid
set email_sender to text 1 through -2 of sender_email
return email_sender
end parse_the_sender
Won't that fail on addresses of the form 'user@domain (name)'?
Or does Mail munge addresses into just one form?
So far as I can tell, it's always in the form of name <email@hidden>
Unfortunately, and unlike other email programs such as the late
lamented Claris Emailer, the sender is plain text, without
distinguishing between the sender's name and email address, so I have
to parse out the address itself.
It would be so much simpler if there were a rule to add an address to
the AB and one to add it to a group.
-- Michelle
--
We're surrounded. That simplifies the problem.
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.