Dear Mark,

Thanks for such operative respond.

For example I'm passing to rfc822_parse_msg this:
// start
From: Akmal Khodjanov <[EMAIL PROTECTED]>
Subject: Testing message
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-Disposition: INLINE


Hello there,

this is a test.
-akmal.
// end

after rfc822_parse_msg when I try to ouput the envelope and body
contents I get this:
// start
Date: Wed, 3 Nov 2004 01:50:12 +0500 (West Asia Standard Time)
From: Akmal Khodjanov <[EMAIL PROTECTED]>
Sender: Akmal Khodjanov <[EMAIL PROTECTED]>
Reply-To: Akmal Khodjanov <[EMAIL PROTECTED]>
Subject: Testing message
To: [EMAIL PROTECTED]
Message-ID: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; CHARSET=US-ASCII
Content-Disposition: INLINE


// end

As you see, in the second output I don't have body part, and can't figure
out why.

The reason why I wanted to use rfc822_parse_msg is to create c-client
envelope and body from plain text file where email message could be
saved, say in *.msg format. If there is any other option of doing this
please let me know.

Thanks.

-akmal.

-- 
Best regards,
 Akmal
-----------------------------------
"I do not feel obliged to believe that the same God who has endowed
us with sense, reason, and intellect has intended us to forgo their use."
≈ Galileo Galilei.
.......................................................


Wednesday, November 3, 2004, 1:20:50 AM, you wrote:

MC> Your call looks right, although the "host" argument should not be an empty
MC> string; if you don't want to specify a localhost pass a NIL argument to
MC> default to the internal BADHOST.

MC> When you say "the body contents are empty" what do you mean?  At the very
MC> least you should have a TEXT/PLAIN body passed back.

MC> Also, why are you calling rfc822_parse_msg()?  This is a very low-level
MC> routine in c-client.  For most purposes, you would use the higher level
MC> mail_fetch_structure() instead.  If you use the low-level routines, you
MC> may be causing yourself a lot more work than is necessary.

MC> -- Mark --

MC> http://staff.washington.edu/mrc
MC> Science does not emerge from voting, party politics, or public debate.
MC> Si vis pacem, para bellum.

Reply via email to