Re: Help with retrieving messages from GMail account in Mail.app
Re: Help with retrieving messages from GMail account in Mail.app
- Subject: Re: Help with retrieving messages from GMail account in Mail.app
- From: Michelle Steiner <email@hidden>
- Date: Thu, 30 Jun 2011 11:05:28 -0700
On Jun 30, 2011, at 10:47 AM, John Kane wrote: I want to copy messages in a target date range into a folder (for further processing)
This will return all the messages in selected mailboxes that were sent in June 2011:
tell application "Mail" tell message viewer 1 messages whose date sent is greater than date "Tuesday, May 31, 2011 11:59:59 PM" and date sent is less than date "Friday, July 1, 2011 12:00:00 AM" end tell end tell
You could use date received instead of date sent, if that's what you need, but the results would be the same except for messages sent in May and received in June, or sent in June and received in July.
-- Prius: Kicks Gas
|
_______________________________________________
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