MBOX-Line: From mrc at CAC.Washington.EDU  Sun Mar 11 13:58:23 2007
To: imap-protocol@u.washington.edu
From: Mark Crispin <mrc@CAC.Washington.EDU>
Date: Fri Jun  8 12:34:38 2018
Subject: [Imap-protocol] question on BODY[n.MIME]? 
In-Reply-To: <07Mar11.123637pst."57996"@synergy1.parc.xerox.com>
References: <07Mar8.112542pst."57996"@synergy1.parc.xerox.com>
	<alpine.OSX.0.83.0703081129120.11046@pangtzu.panda.com>
	<07Mar8.141232pst."57996"@synergy1.parc.xerox.com>
	<alpine.WNT.0.83.0703081500000.4212@Tomobiki-Cho.CAC.Washington.EDU>
	<07Mar11.123637pst."57996"@synergy1.parc.xerox.com>
Message-ID: <alpine.OSX.0.83.0703111345580.20984@pangtzu.panda.com>

On Sun, 11 Mar 2007, Bill Janssen wrote:
> So how is BODY[x.MIME] different from BODY[x.HEADER]?

BODY[HEADER] and BODY[x.HEADER] refers to an RFC [2]822 header.  Thus, it 
is only applicable to objects which are messages.  BODY[x.MIME] are the 
MIME-IMB headers.

Consider this example message:
----------------------------------------------------------------------
Date: Sun, 11 Mar 2007 13:47:36 -0700 (PDT)
From: Mark Crispin <mrc@CAC.Washington.EDU>
To: "friends, Romans, and countrymen": ;
Subject: great truths
Message-ID: <alpine.OSX.0.83.0703111347280.20984@pangtzu.panda.com>
MIME-Version: 1.0
Content-Type: MULTIPART/MIXED; BOUNDARY="0-862873250-1173646059=:20984"

   This message is in MIME format.  The first part should be readable text,
   while the remaining parts are likely unreadable without MIME-aware tools.

--0-862873250-1173646059=:20984
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII

More proof that TOPS-20 was a great improvement over its successors.

--0-862873250-1173646059=:20984
Content-Type: MESSAGE/RFC822; CHARSET=US-ASCII

Date: Sun, 11 Mar 2007 13:23:23 -0700
From: Fred Foobar <foobar@example.com>
To: Mark Crispin <mrc@cac.washington.edu>
Subject: my wish
Message-Id: <07Mar11.122327.198238@example.com>

Gee, I wish that I could use TOPS-20 again!

--0-862873250-1173646059=:20984--
----------------------------------------------------------------------

 	BODY[2] is the text:
Date: Sun, 11 Mar 2007 13:23:23 -0700
From: Fred Foobar <foobar@example.com>
To: Mark Crispin <mrc@cac.washington.edu>
Message-Id: <07Mar11.122327.198238@example.com>

Gee, I wish that I could use TOPS-20 again!

 	BODY[2.MIME] is the text:
Content-Type: MESSAGE/RFC822; CHARSET=US-ASCII

 	BODY[2.HEADER] is the text:
Date: Sun, 11 Mar 2007 13:23:23 -0700
From: Fred Foobar <foobar@example.com>
To: Mark Crispin <mrc@cac.washington.edu>
Subject: my wish
Message-Id: <07Mar11.122327.198238@example.com>

 	BODY[2.TEXT] is the text:
Gee, I wish that I could use TOPS-20 again!

-- Mark --

http://panda.com/mrc
Democracy is two wolves and a sheep deciding what to eat for lunch.
Liberty is a well-armed sheep contesting the vote.

