Re: [Imap-protocol] IMAP part numbering corner case

Philip Guenther <[email protected]>
Newsgroups gmane.mail.imap.general
Message-ID <[email protected]>
On Fri, 17 Aug 2012, Timo Sirainen wrote:
> On 17.8.2012, at 7.17, Philip Guenther wrote:
> >> [Outlook, I'm pretty sure, but it doesn't implement ID]:
> >> BODY[TEXT]: The entire inner message
> >> BODY[1]: The entire inner message
> >> BODY[1.1]: NIL
> > 
> > This violates this paragraph from RFC 3501, page 55:   
> >         A part of type MESSAGE/RFC822 also has nested part numbers,
> >         referring to parts of the MESSAGE part's body.
> > 
> > ...which when combined with the first quote above, means that "1.1" 
> > should be a valid specifier for the inner message's content.
> 
> Is it valid? 1.1 makes sense when it's a multipart, in which case it 
> refers to the first MIME part, but is it valid when ther's no multipart? 
> Looks like UW-IMAP allows it, but not 1.1.1, so maybe it was meant to be 
> valid. I could add it to my tests..

Flip it around.  Given a message, if you nest it inside another message as 
a message/rfc822 part, the addressing of its parts are formed by 
concatenating the addressing of the part it is nested as and the parts 
inside it.

Given this message
-----
Date: Fri, 01 Jan 2012 12:00 -0500
To: [email protected]
From: [email protected]
Subject: Blast from the future
MIME-Version:1.0
Content-Type: text/plain

Do you know what to do when you see this message?

-----

it has a single part, which can be addressed with the specifier "1".  So, 
if you nest it

-----
Date: Fri, 01 Jan 2010 12:00 -0500
To: [email protected]
From: [email protected]
Subject: download on demand problem
MIME-Version: 1.0
Content-Type: message/rfc822

Date: Fri, 01 Jan 2012 12:00 -0500
To: [email protected]
From: [email protected]
Subject: Blast from the future
MIME-Version:1.0
Content-Type: text/plain

Do you know what to do when you see this message?

-----

The entire inner message is "1", so the text of the inner message is the 
concatenation "1.1".


Philip Guenther
_______________________________________________
Imap-protocol mailing list
[email protected]
http://mailman2.u.washington.edu/mailman/listinfo/imap-protocol
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.