• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Accessing/creating mailboxes in Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Accessing/creating mailboxes in Mail.app


  • Subject: Re: Accessing/creating mailboxes in Mail.app
  • From: Axel Luttgens <email@hidden>
  • Date: Sat, 1 Jan 2011 03:05:06 +0100

Le 31 déc. 2010 à 21:51, LuKreme a écrit :

> I know I can say
>
> repeat with eachAccount in imap accounts
>  set myAccount to name of eachAccount
>  set myMailbox to myAccount's mailbox "Test"
> end repeat
>
> 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

So, it seems you are facing a server having "." as an hierarchy delimiter.
Never met that case, and thus don't know how Mail handles such things.
But perhaps could you start with the basics:

	tell application "Mail"
		accounts
	end tell

and pick from there the account you are interested in, say:

	account "someaccount"

Then see what gives:

	tell application "Mail"
		tell account "someaccount"
			mailboxes
		end tell
	end tell

so as to know how those mailboxes are identified by Mail.

Could you have a look, and report here the results?
HTH,
Axel


 _______________________________________________
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

References: 
 >Accessing/creating mailboxes in Mail.app (From: LuKreme <email@hidden>)

  • Prev by Date: Re: Accessing/creating mailboxes in Mail.app
  • Previous by thread: Re: Accessing/creating mailboxes in Mail.app
  • Index(es):
    • Date
    • Thread