MBOX-Line: From dkarp at zimbra.com  Mon Aug 20 13:48:48 2012
To: imap-protocol@u.washington.edu
From: Dan Karp <dkarp@zimbra.com>
Date: Fri Jun  8 12:34:48 2018
Subject: [Imap-protocol] IMAP part numbering corner case
In-Reply-To: <alpine.BSO.2.00.1208162109520.13998@morgaine.smi.sendmail.com>
References: <502DBEA4.2070204@verizon.net>
	<alpine.BSO.2.00.1208162109520.13998@morgaine.smi.sendmail.com>
Message-ID: <938843794.54586.1345495728390.JavaMail.root@zimbra.com>

> > [Zimbra, specifically 7.2.0_GA_2669]:
> > BODY[TEXT]: The entire inner message
> > BODY[1]: The entire inner message
> > BODY[1.1]: Do you know...
> > BODY[1.MIME]: Headers of the outer message
> > BODY[1.HEADER]: Headers of the outer message
> 
> This violates this paragraph from RFC 3501, page 55:
>          The HEADER, HEADER.FIELDS, and HEADER.FIELDS.NOT part
>          specifiers refer to the [RFC-2822] header of the message or
>          of an encapsulated [MIME-IMT] MESSAGE/RFC822 message.
> 
> Since BODY[1] refers to the entire inner message, which is an
> encapsulated MESSAGE/RFC822 message, BODY[1.HEADER] should be the
> header of that inner message.

Thanks for noticing this.  We had a code mis-ordering in our part
numbering handler that was triggered in exactly this case.  It
will be fixed in the 8.0.1 release.

   https://bugzilla.zimbra.com/show_bug.cgi?id=77048

- Dan

