I'm trying to format an envelope and body for sending through the smtp_mail() function. The message is type TYPEMULTIPART and has an attachment of type TYPEMESSAGE with subtype of RFC822.
Set the TYPEMESSAGE text as if it was type TYPETEXT. Typically, you use TYPEMESSAGE when you are forwarding a message, which means that you already have it as a text string. It's therefore pointless to deconstruct the message just to have c-client reconstruct it; especially since the usual point of forwarding as MIME is to forward the message as-is.
Look at the source code for Pine to see an example.
-- Mark --
http://staff.washington.edu/mrc Science does not emerge from voting, party politics, or public debate. Si vis pacem, para bellum.
