re: Accessing parts of a message with IMAP

Mark Crispin <MRC@cac.washington.edu> Fri, 29 August 1997 19:14 UTC

Received: from cnri by ietf.org id aa13575; 29 Aug 97 15:14 EDT
Received: from lists2.u.washington.edu (root@lists2.u.washington.edu [140.142.56.1]) by cnri.reston.va.us (8.8.5/8.7.3) with ESMTPid PAA17795 for <ietf-archive@CNRI.Reston.VA.US>; Fri, 29 Aug 1997 15:18:09 -0400 (EDT)
Received: from host (lists.u.washington.edu [140.142.56.13]) by lists2.u.washington.edu (8.8.4+UW97.07/8.8.4+UW97.05) with SMTP id MAA09692; Fri, 29 Aug 1997 12:10:11 -0700
Received: from mx5.u.washington.edu (mx5.u.washington.edu [140.142.32.6]) by lists.u.washington.edu (8.8.4+UW97.07/8.8.4+UW97.05) with ESMTP id MAA15748 for <imap@lists.u.washington.edu>; Fri, 29 Aug 1997 12:09:26 -0700
Received: from mailhost2.cac.washington.edu (mailhost2.cac.washington.edu [140.142.33.2]) by mx5.u.washington.edu (8.8.4+UW97.07/8.8.4+UW97.04) with ESMTP id MAA28843 for <imap@u.washington.edu>; Fri, 29 Aug 1997 12:09:25 -0700
Received: from Tomobiki-Cho.CAC.Washington.EDU (att@tomobiki-cho.cac.washington.edu [128.95.135.58]) by mailhost2.cac.washington.edu (8.8.4+UW97.07/8.8.4+UW97.07) with SMTP id MAA15426; Fri, 29 Aug 1997 12:09:21 -0700
Message-Id: <MailManager.872881564.4786.mrc@Tomobiki-Cho.CAC.Washington.EDU>
Date: Fri, 29 Aug 1997 12:06:04 -0700
Sender: IMAP-owner@u.washington.edu
Precedence: bulk
From: Mark Crispin <MRC@cac.washington.edu>
To: William Wyatt <wwyatt@bostech.com>
Cc: "'imap@u.washington.edu'" <imap@u.washington.edu>
Subject: re: Accessing parts of a message with IMAP
In-Reply-To: <c=US%a=_%p=bostech%l=CARRIER-970829161811Z-3333@carrier.btrd.bostontechnology.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET="US-ASCII"
X-Sender: Mark Crispin <mrc@tomobiki-cho.cac.washington.edu>
X-Listprocessor-Version: 8.1 beta -- ListProcessor(tm) by CREN

On Fri, 29 Aug 1997 12:18:11 -0400, William Wyatt wrote:
> FETCH 1 BODY[1] gives me:
> Content-type: audio/x-bti-oki24
> <blank line>
> ... here is the data ...

No, it will just give you the data, not the header.

> FETCH 1 BODY[2] gives me:
> Content-type: message/external-body; access-type=cifs; name="<file
> name>"; size=12510
> <blank line>
> Content-type: audio/x-bti-oki24
> Content-ID: <some id>
> <blank line>
> <blank line>

Again, this will give you the data, without the MIME header.

> FETCH 1 BODY[2.HEADER]
> FETCH 1 BODY[2.TEXT]

Meaningless.  You can only do .HEADER or .TEXT with MESSAGE/RFC822.

FETCH 1 BODY[2] will give you

Content-type: audio/x-bti-oki24
Content-ID: <some id>
<blank line>
<blank line>