I got the structure to look right after I sent the email, but the embedded message is missing (no header or body). What I did is do the following:
part->body.type = TYPEMESSAGE; part->body.subtype = cpystr("RFC822"); part->body.disposition.type = cpystr("ATTACHMENT");
part->body.nested.msg = mail_newmsg(); part->body.nested.msg->env = mail_newenvelope(); part->body.nested.msg->body = mail_newbody();
// setup the embedded message header
embed->createEnvelope(part->body.nested.msg->env);
// setup the embedded message body
embed->createBody(part, part->body.nested.msg->body);
Seems like c-client is ignoring the "part->body.nested.msg" part.
Is there something I'm missing?
Thanks,
Shawn
--
------------------------------------------------------------------
For information about this mailing list, and its archives, see: http://www.washington.edu/imap/c-client-list.html
------------------------------------------------------------------