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: John Kane <email@hidden>
- Date: Sat, 02 Jul 2011 19:39:07 -0600
I have a process that walks various directories in my Mail directory, looking for data and extracting it. I have not altered it to be smart enough to know which files to skip (because I have seen them already) as all of the directories (for my various other mail accounts) are not so large and they only grow by a couple of hundred messages a day. Unfortunately, my GMail/All Messages folder has several hundred thousand entries and it gains hundreds per day.
What I have been doing has been:
1) Create a smart mail folder that select messages in GMail/All Mail for a specific date
2) Since Smart Folders are not persisted (Joel provided the skinny on this), I have to create a copy of the messages in the smart mail folder and then copy them to a local mail folder (I use On My Mac/GMail ... )
3) I do this for several days worth of email (since I am too lazy to do this manual process every day), until I have all of the messages in the On My Mac/GMail folder
4) I run my external process
5) I delete the smart mail folders
6) I delete the messages in On My Mac/GMail
Tomorrow (or in a couple of days) I have to do this again
I don't read my GMail in Mail.app, but it has made it easy to retrieve email from Google. I might have to do something else that is more conducive to being scripted, ie I could just write some perl to grab the new messages from GMail IMAP and dump them into a specific folder (that is not controlled by Mail.app)
Sigh, I was hoping that I could do this in Mail.app ...
On Fri, Jul 1, 2011 at 11:06 PM, Joel Esler
<email@hidden> wrote:
Maybe I don't understand what you are trying to do. I don't know if you need to script anything...
J
On Jul 1, 2011, at 12:59 PM, John Kane wrote:
I have not found that I can use smart folders, I can not find any action where a smart folder is an object
I have used smart folders to do my stuff, but it is very tedious. They have to be created manually, GUI scripting for them sucks. And this is something that I have to do every day ... or almost every day, catching up on those that have not been done previously. This is why I am attempting to do this with AS
I am about to bail and do this in perl, at least the email messages are in the filesystem ...
On Fri, Jul 1, 2011 at 10:49 AM, Luther Fuller
<email@hidden> wrote:
On Jul 1, 2011, at 11:31 AM, Joel Esler wrote:
Make a smart folder in mail with beginning and end dates. Then you can move the mails you want into "x" folder.
Are smart folders scriptable? I can't find them in a mailboxes list
CAREFUL!
A Smart Folder is NOT a folder and it is NOT a mailbox.
A smart folder is a property list document. It has the format of a .plist file but has a .savedSearch extension.
If you want to see the internal format of a smart folder, drag & drop it onto the Property List Editor.app in /Developer/Applications/Utilities/
_______________________________________________
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)
Archives:
http://lists.apple.com/archives/applescript-usersThis 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