GNOME Bugzilla – Bug 621262
[PATCH] imapx fetch truncated on broken servers
Last modified: 2013-09-14 16:54:20 UTC
Created attachment 163352 [details] [review] patch Some crappy servers (Exchange) lie to us when reporting RFC822.SIZE, leading to truncated downloads. This patch works around the problem by continue to fetch chunks of data until we don't get any more data, rather than stopping at the reported size. I removed the '!failed &&' because there was no way to hit this code with 'failed' being set anyway. We normally have parallel fetch requests for three chunks at a time; this patch preserves that behaviour up to the advertised size, then fetches one at a time.
Comment on attachment 163352 [details] [review] patch Patch looks good. Please commit the patch to master and gnome-2-30 branch.
HEAD: http://git.gnome.org/browse/evolution-data-server/commit/?id=9714c064 2.30: http://git.gnome.org/browse/evolution-data-server/commit/?h=gnome-2-30&id=86a2ebd2