/* if we don't have a text-part */
- no_text_part = (strcmp (tny_mime_part_get_content_type (body), "text/html")==0);
+ no_text_part = (!body) || (strcmp (tny_mime_part_get_content_type (body), "text/html")==0);
/* when we're reply, include the text part if we have it, or nothing otherwise. */
if (is_reply)
- new_msg = modest_formatter_inline (formatter, no_text_part ? NULL: body, header,
+ new_msg = modest_formatter_quote (formatter, no_text_part ? NULL: body, header,
attachments);
else {
/* for attachements; inline if there is a text part, and include the