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: Joel Esler <email@hidden>
- Date: Thu, 30 Jun 2011 09:50:40 -0400
Gmail through IMAP is so slow I doubt this would ever EVER execute. I, too, have hundreds of thousands of emails in my Gmail accounts, and their IMAP implementation is throttled, meaning, after a while, when downloading messages, Gmail will throttle you down to only being able to retrieve about 80 messages at a time.
I think if Mail.app has already cached your whole All Mail folder, then the faster way would be to use Spotlight, or search on the command line.
J
On Jun 29, 2011, at 11:19 PM, John Kane wrote:
> I am a complete AppleScript noob here (though I have plenty of programming / scripting experience)
>
> I want to walk through my GMail account in Mail.app. I, unfortunately, want to iterate through all of the messages in All Mail (of GMail) looking for messages that match a specific set of criteria.
>
> Here is where my noob-ness shows. What I have so far is:
>
> tell application "Mail"
> tell account "Gmail"
> tell mailbox "[Gmail]/All Mail"
> set allMessages to every message
> end tell
> end tell
> end tell
>
> This "works", but it of course times out (I have >250,000 messages here). The timeout is on the "set allMessages ..." statement.
>
> Is there some way to do this without creating a list of all messages?
>
> Any other approach that can work?
>
> An IRC channel?
>
> Thanks in advance!
> _______________________________________________
> 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
_______________________________________________
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