diff --git a/imap-send.c b/imap-send.c index eec9e35..e521e2f 100644 --- a/imap-send.c +++ b/imap-send.c @@ -1348,7 +1348,7 @@ static void wrap_in_html(struct strbuf *msg) const char *body = strstr(msg->buf, "\n\n"); if (!body) - die("malformed message"); + return; /* Headers but no body; no wrapping needed */ body += 2;