• 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: Vacation Mail script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


References: 
 >Vacation Mail script (From: Michelle Steiner <email@hidden>)
 >Re: Vacation Mail script (From: Walter Ian Kaye <email@hidden>)

  • Prev by Date: Re: Vacation Mail script
  • Next by Date: Re: Finally sat down and read 2106
  • Previous by thread: Re: Vacation Mail script
  • Next by thread: Re: Vacation Mail script
  • Index(es):
    • Date
    • Thread