public inbox for git@vger.kernel.org 
 help / color / mirror / Atom feed
From: David Woodhouse <dwmw2@infradead•org>
To: Jeffrey Hundstad <jeffrey.hundstad@mnsu•edu>
Cc: "viresh kumar" <viresh.kumar@st•com>,
	"Felipe Contreras" <felipe.contreras@gmail•com>,
	"git@vger•kernel.org" <git@vger•kernel.org>,
	"linux-arm-kernel@lists•infradead.org"
	<linux-arm-kernel@lists•infradead.org>,
	"linux-kernel@vger•kernel.org" <linux-kernel@vger•kernel.org>,
	"Justin P. Mattock" <justinmattock@gmail•com>,
	"Uwe Kleine-König" <u.kleine-koenig@pengutronix•de>,
	"Valeo de Vries" <valeo@valeo•co.cc>,
	"Linus Walleij" <linus.ml.walleij@gmail•com>,
	"Matti Aarnio" <matti.aarnio@zmailer•org>,
	mihai.dontu@gmail•com, richardcochran@gmail•com, "Gadiyar,
	Anand" <gadiyar@ti•com>
Subject: Re: Query: Patches break with Microsoft exchange server.
Date: Wed, 11 Aug 2010 16:58:25 +0100	[thread overview]
Message-ID: <1281542305.5107.11.camel@localhost> (raw)
In-Reply-To: <4C62C5BD.3020808@mnsu.edu>

On Wed, 2010-08-11 at 10:46 -0500, Jeffrey Hundstad wrote:
> Exchange 2010 does not handle IMAP "chunking" (partial message transfer) 
> correctly.  Any request after about 1 megabyte of total message size 
> will fail.
> 
> Thunderbird uses this "chunking" feature to give you a status update 
> while downloading large messages.  The IMAP statements are of this type:
> 11 UID fetch 244477 (UID RFC822.SIZE BODY[]<20480.12288>)
> 
> When the 20480 is larger than 1MB Exchange "claims" there is no more.  
> Sigh.... 

I think the problem is not with the fetching -- the problem is that
Exchange lies about RFC822.SIZE before the IMAP client even starts to
fetch the message. It reports a size which is smaller than the actual
size of the message, thus leading to truncated fetches.

In Evolution we have a workaround -- we don't just stop when we get to
the reported RFC822.SIZE; we continue fetching more chunks until the
server actually stops giving us any more. It's not as efficient (because
we fall back to having only one more chunk outstanding at a time rather
than the normal three in parallel), but at least it works around this
brokenness of Exchange.

http://git.gnome.org/browse/evolution-data-server/commit/?id=9714c064

-- 
David Woodhouse                            Open Source Technology Centre
David.Woodhouse@intel•com                              Intel Corporation

  reply	other threads:[~2010-08-11 15:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <4C5F9B25.8080401@st.com>
2010-08-10 22:04 ` Query: Patches break with Microsoft exchange server Felipe Contreras
2010-08-11  7:01   ` viresh kumar
2010-08-11 15:46     ` Jeffrey Hundstad
2010-08-11 15:58       ` David Woodhouse [this message]
2010-08-11 16:16         ` Jeffrey Hundstad
2010-08-11 16:18         ` Avery Pennarun
2010-08-11 16:30           ` David Woodhouse
2010-08-11 16:39             ` Avery Pennarun
2010-08-12  4:41       ` viresh kumar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1281542305.5107.11.camel@localhost \
    --to=dwmw2@infradead$(echo .)org \
    --cc=felipe.contreras@gmail$(echo .)com \
    --cc=gadiyar@ti$(echo .)com \
    --cc=git@vger$(echo .)kernel.org \
    --cc=jeffrey.hundstad@mnsu$(echo .)edu \
    --cc=justinmattock@gmail$(echo .)com \
    --cc=linus.ml.walleij@gmail$(echo .)com \
    --cc=linux-arm-kernel@lists$(echo .)infradead.org \
    --cc=linux-kernel@vger$(echo .)kernel.org \
    --cc=matti.aarnio@zmailer$(echo .)org \
    --cc=mihai.dontu@gmail$(echo .)com \
    --cc=richardcochran@gmail$(echo .)com \
    --cc=u.kleine-koenig@pengutronix$(echo .)de \
    --cc=valeo@valeo$(echo .)co.cc \
    --cc=viresh.kumar@st$(echo .)com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox