[PATCH] Re: IMAP.cachemessagelist(): Protect against empty folders
Sebastian at SSpaeth.de
Thu Sep 8 09:20:52 BST 2011
On Wed, 7 Sep 2011 19:18:36 +0200, Nicolas Sebrecht <nicolas.s-dev at laposte.net> wrote:
> > Yeah, there is no need for user configuration, we can detect empty
> > folders ourselves just fine. I had simplified the "max UID calculation"
> > and it worked fine on my server, but we need to stop explicitly on empty
> > folders and not ask for "FETCH 1:* (UID)" on empty folders.
> > The patch I just sent is a slight optimization (we don't ask the server
> > for the mail UIDs of folders with 0 messages), so the patch is good in
> > any case.
> Would that hurt if there is a remote empty folder which is populated
> later (once a first sync done)?
No, we check on each sync, so once it is populated we will start
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 197 bytes
Desc: not available
More information about the OfflineIMAP-project