[PATCH] Avoid Fatal error: Word too long from Cyrus IMAP servers by chunking fetch.

Edward Z. Yang ezyang at MIT.EDU
Thu Jan 20 23:06:03 GMT 2011


Hello Sebastian,

That is a good point.  It is mitigated by the fact that this code
is only exercised when you have maxage set, which bounds the number
of messages you may pull (and paradoxically hugely increases the size of
your query.)  It is too bad there is no SEARCH-AND-FETCH command.
This is actually probably why you've never seen this error :-)

Nevertheless, the number could probably be a lot bigger than 50,
and doing a test on the original query shouldn't be that expensive
and is probably the right thing to do, albeit more complex code-wise.

> I don't think we should perform the least common denominator actions by
> default. If we do that for all server quirks, offlineimap would soon
> become unusable.

Doesn't OfflineIMAP already have lots of workarounds for servers? ;-)
I'm personally very displeased with the X-OfflineIMAP header that is
added :-P

Cheers,
Edward




More information about the OfflineIMAP-project mailing list