non-plain text. Also don't clobber $content_type when parsing it.
Closes: #2038.
else if (a->type == TYPETEXT)
{
/* On text, default to editor */
- mutt_edit_file (NONULL (Editor), newfile);
+ mutt_edit_file (NONULL (Editor), a->filename);
}
else
{
/* save current value of "pgp_sign_as" */
char *signas = NULL;
char *tag = NULL, *err = NULL;
+ char *ctype;
int rv = -1;
pbody->next = msg->content; /* don't kill command-line attachments */
msg->content = pbody;
- mutt_parse_content_type (ContentType, msg->content);
+ ctype = safe_strdup (ContentType);
+ mutt_parse_content_type (ctype, msg->content);
+ FREE (&ctype);
msg->content->unlink = 1;
msg->content->use_disp = 0;
msg->content->disposition = DISPINLINE;