• 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: Simon Forster <email@hidden>
  • Date: Mon, 10 Nov 2008 15:08:33 +0000


On 10 Nov 2008, at 14:32, Philip Aker wrote:

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.

And it can be slow. I've narrowed the list down to the mailboxes I should be looking through - less generic but far quicker.


How do I find those whose recipients end with ".net"? Struggling with this a bit.

TIA

Simon
_______________________________________________
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>)
 >Re: Dumb Mail.app Scripting Question (From: Philip Aker <email@hidden>)

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