/*
* can't use strtok() because we use it in an inner loop below, so use
* a switch statement here instead.
/*
* can't use strtok() because we use it in an inner loop below, so use
* a switch statement here instead.
default:
debug_print (1, ("Internal error, count = %d.\n", count));
goto bye; /* shouldn't happen */
default:
debug_print (1, ("Internal error, count = %d.\n", count));
goto bye; /* shouldn't happen */
a->parts = mutt_parse_messageRFC822 (fpin, a);
transform_to_7bit (a->parts, fpin);
a->parts = mutt_parse_messageRFC822 (fpin, a);
transform_to_7bit (a->parts, fpin);
mutt_copy_hdr (fpin, fpout, a->offset, a->offset + a->length,
CH_MIME | CH_NONEWLINE | CH_XMIT, NULL);
mutt_copy_hdr (fpin, fpout, a->offset, a->offset + a->length,
CH_MIME | CH_NONEWLINE | CH_XMIT, NULL);
mutt_write_mime_header (a->parts, fpout);
fputc ('\n', fpout);
mutt_write_mime_body (a->parts, fpout);
mutt_write_mime_header (a->parts, fpout);
fputc ('\n', fpout);
mutt_write_mime_body (a->parts, fpout);
#ifdef USE_NNTP
if (env->newsgroups)
fprintf (fp, "Newsgroups: %s\n", env->newsgroups);
else if (mode == 1 && option (OPTNEWSSEND) && EDIT_HEADER("Newsgroups:"))
#ifdef USE_NNTP
if (env->newsgroups)
fprintf (fp, "Newsgroups: %s\n", env->newsgroups);
else if (mode == 1 && option (OPTNEWSSEND) && EDIT_HEADER("Newsgroups:"))
if (env->followup_to)
fprintf (fp, "Followup-To: %s\n", env->followup_to);
else if (mode == 1 && option (OPTNEWSSEND) && EDIT_HEADER("Followup-To:"))
if (env->followup_to)
fprintf (fp, "Followup-To: %s\n", env->followup_to);
else if (mode == 1 && option (OPTNEWSSEND) && EDIT_HEADER("Followup-To:"))
if (env->x_comment_to)
fprintf (fp, "X-Comment-To: %s\n", env->x_comment_to);
else if (mode == 1 && option (OPTNEWSSEND) && option (OPTXCOMMENTTO) &&
EDIT_HEADER("X-Comment-To:"))
if (env->x_comment_to)
fprintf (fp, "X-Comment-To: %s\n", env->x_comment_to);
else if (mode == 1 && option (OPTNEWSSEND) && option (OPTXCOMMENTTO) &&
EDIT_HEADER("X-Comment-To:"))
#endif
if (env->subject)
fprintf (fp, "Subject: %s\n", env->subject);
else if (mode == 1 && EDIT_HEADER("Subject:"))
#endif
if (env->subject)
fprintf (fp, "Subject: %s\n", env->subject);
else if (mode == 1 && EDIT_HEADER("Subject:"))
mutt_write_address_list (env->reply_to, fp, 10, 0);
}
else if (mode > 0 && EDIT_HEADER("Reply-To:"))
mutt_write_address_list (env->reply_to, fp, 10, 0);
}
else if (mode > 0 && EDIT_HEADER("Reply-To:"))
fprintf (f, "Resent-From: %s", resent_from);
fprintf (f, "\nResent-%s", mutt_make_date (date, sizeof (date)));
if (MsgIdFormat && *MsgIdFormat)
fprintf (f, "Resent-From: %s", resent_from);
fprintf (f, "\nResent-%s", mutt_make_date (date, sizeof (date)));
if (MsgIdFormat && *MsgIdFormat)
fprintf (msg->fp, "Lines: %d\n\n", lines);
/* copy the body and clean up */
fprintf (msg->fp, "Lines: %d\n\n", lines);
/* copy the body and clean up */