• 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: Dumb Mail.app Scripting Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dumb Mail.app Scripting Question


  • Subject: Re: Dumb Mail.app Scripting Question
  • From: Philip Aker <email@hidden>
  • Date: Mon, 10 Nov 2008 06:32:53 -0800

On 2008-11-10, at 05:42:18, Simon Forster wrote:


Is there an easy way to get the message id of every message whose sender ends with "xyz.xom"?

Basically, I want to get a list of all messages where the sender (or recipient) of a message ends with a specified domain. Can I do this or do I need to loop through every mailbox?

Something like this could be a start:

tell application "Mail"
id of every message of mailboxes whose sender ends with ".net"
end tell

I end up with a lot of empty list items in the result for the above though, so you'd have to be prepared to handle that kind of result.


Philip Aker
echo email@hidden@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Dumb Mail.app Scripting Question
      • From: Simon Forster <email@hidden>
References: 
 >Dumb Mail.app Scripting Question (From: Simon Forster <email@hidden>)

  • Prev by Date: Dumb Mail.app Scripting Question
  • Next by Date: Re: Dumb Mail.app Scripting Question
  • Previous by thread: Dumb Mail.app Scripting Question
  • Next by thread: Re: Dumb Mail.app Scripting Question
  • Index(es):
    • Date
    • Thread