librelist archives

« back to archive

Child folder list?

Child folder list?

From:
Greg Maletic
Date:
2013-03-07 @ 00:30
I can see there's an allFolders method on CTCoreAccount that returns all 
top-level folders. I've looked repeatedly, and I can't find a method to 
find any child folders that might exist inside a particular folder, either
via CTCoreAccount or CTCoreFolder.

How is this done?

Thanks.

Re: [mailcore] Child folder list?

From:
Matt Ronge
Date:
2013-03-07 @ 16:20
Hey Greg,

All folder including nested ones will be returned in that list. For example:

INBOX
MyFolder
MyFolder.SubFolder1
MyFolder.SubFolder2


That's an example of how the folders are returned, where the sub folders 
are in the same list but delimited with usually a '.' or '/' (depends on 
the server)

Hope that helps,
--
Matt Ronge

iOS App Consultant
Central Atomics Inc.
http://www.centralatomics.com







On Mar 6, 2013, at 6:30 PM, Greg Maletic <greg@panic.com> wrote:

> I can see there's an allFolders method on CTCoreAccount that returns all
top-level folders. I've looked repeatedly, and I can't find a method to 
find any child folders that might exist inside a particular folder, either
via CTCoreAccount or CTCoreFolder.
> 
> How is this done?
> 
> Thanks.
> 

Re: [mailcore] Child folder list?

From:
Greg Maletic
Date:
2013-03-07 @ 18:22
Okay, thanks. (I had done some testing on this yesterday that led me to 
believe it wasn't exhaustively listing all the folders. But turns out it 
was my mistake. It does work!)

—Greg


On Mar 7, 2013, at 8:20 AM, Matt Ronge <mronge@mronge.com> wrote:

> Hey Greg,
> 
> All folder including nested ones will be returned in that list. For example:
> 
> INBOX
> MyFolder
> MyFolder.SubFolder1
> MyFolder.SubFolder2
> 
> 
> That's an example of how the folders are returned, where the sub folders
are in the same list but delimited with usually a '.' or '/' (depends on 
the server)
> 
> Hope that helps,
> --
> Matt Ronge
> 
> iOS App Consultant
> Central Atomics Inc.
> http://www.centralatomics.com
> 
> 
> 
> 
> 
> 
> 
> On Mar 6, 2013, at 6:30 PM, Greg Maletic <greg@panic.com> wrote:
> 
>> I can see there's an allFolders method on CTCoreAccount that returns 
all top-level folders. I've looked repeatedly, and I can't find a method 
to find any child folders that might exist inside a particular folder, 
either via CTCoreAccount or CTCoreFolder.
>> 
>> How is this done?
>> 
>> Thanks.
>> 
>