MBOX-Line: From guenther+imap at sendmail.com  Sat May 12 13:35:48 2012
To: imap-protocol@u.washington.edu
From: Philip Guenther <guenther+imap@sendmail.com>
Date: Fri Jun  8 12:34:48 2018
Subject: [Imap-protocol] Re: partial fetch of BODY data
In-Reply-To: <4FAEA968.4000203@ymail.com>
References: <4FAE0F7F.9000709@ymail.com>
	<2A0907F0-BF62-4E83-B3BE-0957A736A820@iki.fi>
	<4FAEA968.4000203@ymail.com>
Message-ID: <alpine.BSO.2.00.1205121420140.14455@morgaine.smi.sendmail.com>

On Sat, 12 May 2012, Bill Shannon wrote:
> And just to confirm, a server should never return "NIL" for a BODY
> content, even if I attempt to read way past the end of the content,
> correct?  At least, as long as the message exists.  It might return
> NIL if the message has been expunged, right?

If the part specifier is invalid for the message, then the server may 
return NIL.

So, for example, given a message whose MIME structure is

  multipart/alternative
    text/plain
    text/html

then a request for BODY[1.TEXT] or BODY[1.HEADER] can get you a NIL.


Philip Guenther

