Request size problem with Zimbra
Daniel Shahaf
d.s at daniel.shahaf.name
Tue Mar 27 14:45:13 BST 2012
Lukas Zapletal wrote on Tue, Mar 27, 2012 at 15:15:03 +0200:
> Hello,
>
> I am using offlineimap with Zimbra and it works very well. The only
> thing is when I am offline for few days and some of my lists gets
> filled, offlineimap is hitting some Zimbra boundaries and prints:
>
> parse error: maximum request size exceeded
>
> Not being IMAP expert, from the exception I can see offlineimap is
> sending a big request. Is there any configuration or hack that could
> help me setting this to a reasonable value? From various internet
> resources I understand it is set to 2048.
>
> The full log: http://pastie.org/private/zxipgwcf8mdgrzwcnrzvg
>
> WARNING: ERROR in syncfolder for XXXX folder xxxxxxxxx: Traceback (most recent call last):
> File "/usr/lib/python2.7/site-packages/offlineimap/accounts.py", line 340, in syncfolder
> remotefolder.cachemessagelist()
> File "/usr/lib/python2.7/site-packages/offlineimap/folder/IMAP.py", line 175, in cachemessagelist
> response = imapobj.fetch(messagesToFetch, '(FLAGS UID)')[1]
> File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 704, in fetch
> return self._simple_command(name, message_set, message_parts, **kw)
> File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1549, in _simple_command
> return self._command_complete(self._command(name, *args), kw)
> File "/usr/lib/python2.7/site-packages/offlineimap/imaplib2.py", line 1314, in _command_complete
> raise self.error('%s command error: %s %s. Data: %.100s' % (rqb.name, typ, dat, rqb.data))
> error: FETCH command error: BAD ['parse error: maximum request size exceeded']. Data: JNAH182 FETCH
> 12316,12317,12318,12319,12320,12321,12322,12323,12324,12325,12326,12327,12328,12329,......
You could hack offlineimap (or libimap?) to use ranges here:
JNAH182 FETCH 12316:12329,......
More information about the OfflineIMAP-project
mailing list