Re: Accessing/creating mailboxes in Mail.app
Re: Accessing/creating mailboxes in Mail.app
- Subject: Re: Accessing/creating mailboxes in Mail.app
- From: Luther Fuller <email@hidden>
- Date: Fri, 31 Dec 2010 15:34:24 -0600
On Dec 31, 2010, at 2:51 PM, LuKreme wrote: But what if I want to access the mailbox "Foo" which is in the IMAP folder "Bar" which is under another folder named "2010"?
2010.Bar.Foo on the server side
You might want to use a slash delimited path. It worked in 10.4, but I haven't tried it in 10.6. For example: mailbox "2010/bar/Foo"
If you want to see how your mailboxes are organized, you can use something like this ...
tell application "Mail" activate set allMailboxes to mailboxes as list -- does not need open message viewer -- set allMailboxes to mailboxes of account something as list -- using an account is optional repeat with mbox in allMailboxes set mailboxPath to (name of mbox) as text set mboxContainer to (container of mbox) repeat try set mailboxPath to ((name of mboxContainer) as text) & "/" & mailboxPath set mboxContainer to container of mboxContainer on error exit repeat end try end repeat display dialog mailboxPath -- White mailboxes do not appear, but they do appear as a container end repeat end tell
|
_______________________________________________
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