MBOX-Line: From tss at iki.fi  Wed Jan 25 05:26:45 2012
To: imap-protocol@u.washington.edu
From: Timo Sirainen <tss@iki.fi>
Date: Fri Jun  8 12:34:47 2018
Subject: [Imap-protocol] FETCH n BODY[1.MIME] for a single-part message
In-Reply-To: <alpine.OSX.2.00.1201240857570.38441@hsinghsing.panda.com>
References: <201201241544.q0OFi3S2028880@mxout13.cac.washington.edu>
	<alpine.OSX.2.00.1201240857570.38441@hsinghsing.panda.com>
Message-ID: <2607DEC0-FA3A-4D7D-885E-ECA7B2CF9EA8@iki.fi>

On 24.1.2012, at 19.05, Mark Crispin wrote:

> On Tue, 24 Jan 2012, Pete Maclean wrote:
>> I have just come across an IMAP client, ibisMail, that sends
>>    FETCH n BODY[1.MIME]
>> commands for single-part messages.  If memory serves, this is the
>> first time I have seen such behavior and I find myself unclear as to
>> how a server should handle it.
> 
> Simple answer: for all body parts that are not children of a MULTIPART,
> the "MIME" specifier returns the empty string (not NIL).
..
> Only a child of a MULTIPART has a .MIME part.

I would think it is incorrect for the client to even ask for that, so it's more of a GIGO issue.. It looks like Dovecot returns the header, but I didn't intentionally make it do that, it just happens for some reason.


