Re: [mailcore] Persistent session
- Matt Ronge
- 2013-02-11 @ 18:20
Unfortunately, in Mailcore a new connection is created for each folder.
The library below MailCore, libetpan, is capable of just doing a SELECT
without a login. However to do that you'd have to bypass MailCore and use
the low level IMAP code (in mailimap.h). Mailcore is written against the
higher level C interface in libetpan which creates a new connection when
iOS App Consultant
Central Atomics Inc.
On Feb 10, 2013, at 10:16 AM, Davide Gullo <firstname.lastname@example.org> wrote:
> Hi everybody,
> I have a question about session folder.
> I need to use Folders massively and I have a loop to retrieve data from
> My code use this method:
> CTCoreFolder * folder = [[CTCoreFolder alloc] initWithPath:mailboxName
> In the above account is connected but this method executes Login
everytime. I tried to use also this method from CTCoreAccount:
> - (CTCoreFolder *)folderWithPath:(NSString *)path;
> but it's the same because it call the above method from CTCoreFolder which set
> connected = NO;
> everytime it is initialized.
> Is there a simple way to switch quickly from folders but keeping a
> Thanks and Regards,
> Davide Gullo, Consulente Web