Re: Dumb Mail.app Scripting Question
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