Patch for multi-response imap SELECT

Knut Anders Hatlen kahatlen at gmail.com
Sat Aug 28 10:58:39 UTC 2010


Lars Thalmann <web at larsthalmann.com> writes:

> Hi,
>
> It seems some servers (Zimbra?) respond to imap SELECT requests with
> multiple EXISTS lines:
>
> ? SELECT INBOX
> * 500 EXISTS
> * 0 RECENT
> * 1000 EXISTS
> * 0 RECENT
> * 1500 EXISTS
> * 0 RECENT
> * 1567 EXISTS
> * 0 RECENT
>
> This is a rough patch to fix offlineimap so that it handles this:
>
[...]
>
> Would be great with feedback on whether you think this is the right
> solution or not.

Hi Lars,

I came across the same issue and couldn't fetch more than 500 messages
from each folder because of it. I needed to make one more change in
order to get it to work properly with the latest sources from the git
tree, see the attached patch. I've been running with those changes
without any problems for three weeks now.

Thanks,

-- 
Knut Anders
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: offlineimap.diff
URL: <http://lists.alioth.debian.org/pipermail/offlineimap-project/attachments/20100828/693f07ae/attachment.asc>


More information about the OfflineIMAP-project mailing list