mx_commit_message (msg, &tmpctx);
create_tagged_message (const char *tempfile,		       int tag,		       CONTEXT *ctx,		       HEADER *cur,		       BODY *body){  char *boundary;  MESSAGE *msg, *src;  CONTEXT tmpctx;  int magic;  magic = DefaultMagic;  DefaultMagic = M_MBOX;  mx_open_mailbox (tempfile, M_APPEND, &tmpctx);  msg = mx_open_new_message (&tmpctx, cur, M_ADD_FROM);  src = mx_open_message (ctx, cur->msgno);  if (tag)  {    mutt_copy_header (src->fp, cur, msg->fp, CH_XMIT, NULL);    boundary = mutt_get_parameter ("boundary", cur->content->parameter);    copy_tagged_attachments (msg->fp, src->fp, boundary, cur->content->parts);    fprintf (msg->fp, "--%s--\n", boundary);  }  else  {    /* single attachment */    mutt_copy_header (src->fp, cur, msg->fp, CH_XMIT | CH_MIME | CH_NONEWLINE, NULL);    fputs ("Mime-Version: 1.0\n", msg->fp);    mutt_write_mime_header (body, msg->fp);    fputc ('\n', msg->fp);    fseek (src->fp, body->offset, 0);    mutt_copy_bytes (src->fp, msg->fp, body->length);  }  mx_close_message (&msg);  mx_close_message (&src);  mx_close_mailbox (&tmpctx);  DefaultMagic = magic;  return 0;}