I have a message that seems "confused" from c-client. I have tried it with Pine 4.64 and it shows the message blank (empty).

I have provided the detail information below. What we are doing is that we don't download the entire message. We fetch the body structure and then we retrieve the body of the message later using the part number. According to the body struture, the "TEXT" "PLAIN" is part 1 and "INLINE" is part 2. But, c-client is returning the data reversed (from what I can gather).

How do I determine the correct part number when I need to get the message?

I use mail_fetch_overview_sequence() to get the BODYSTRUCTURE:

BODYSTRUCTURE (("TEXT" "PLAIN" ("CHARSET" "us-ascii") NIL NIL "7BIT" 0 0 NIL NIL NIL) "MIXED" ("BOUNDARY" "------------090003040805030408020409") ("INLINE" ("FILENAME" "[Fwd: Re: a message]")) NIL) BODY[HEADER.FIELDS (Newsgroups Content-Disposition Content-Language Content-Location X-Priority Received)] {3884}

The actual raw email looks similar to this:

Received: from [1.2.3.4] (example.net [1.2.3.4])
        by example.net (Postfix) with ESMTP id 91C902A593
        for <[EMAIL PROTECTED]>; Fri, 28 Oct 2005 19:39:43 +0200 (CEST)
Message-ID: <[EMAIL PROTECTED]>
Date: Fri, 28 Oct 2005 20:33:27 +0200
From: User Example <[EMAIL PROTECTED]>
User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050715)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: [EMAIL PROTECTED]
Subject: [Fwd: Re: a message]
Content-Type: multipart/mixed;
 boundary="------------090003040805030408020409"

This is a multi-part message in MIME format.
--------------090003040805030408020409
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit


--
User Example


--------------090003040805030408020409
Content-Type: message/rfc822;
 name="Re: a message"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
 filename="Re: a message"

Return-Path: <[EMAIL PROTECTED]>
Received: from example.net ([unix socket])
         by example (Cyrus v2.2.10) with LMTPA;
         Fri, 28 Oct 2005 17:57:13 +0200
X-Sieve: CMU Sieve 2.2
Reply-To: "Some User" <[EMAIL PROTECTED]>
Date: Fri, 28 Oct 2005 11:50:37 -0500
Content-Type: text/plain; charset=UTF-8; format=flowed
MIME-Version: 1.0
From: Some User <[EMAIL PROTECTED]>
Subject: RE: a message
To: Some User <[EMAIL PROTECTED]>
Message-Id: <[EMAIL PROTECTED]>

A sample message

--------------090003040805030408020409--

_______________________________________________
Imap-uw mailing list
Imap-uw@u.washington.edu
https://mailman1.u.washington.edu/mailman/listinfo/imap-uw

Reply via email to