ENGINE-98: #comment Empty html text should no longer produce an HTML attachment. Please test and reopen if it's still problematic. ENGINE-98
authorKrista Grothoff <krista@pep-project.org>
Tue, 27 Sep 2016 01:14:22 +0200
branchENGINE-98
changeset 119712ad9c6eef05
parent 1187 8bbb80bb4323
child 1209 69807e415df0
ENGINE-98: #comment Empty html text should no longer produce an HTML attachment. Please test and reopen if it's still problematic.
src/mime.c
     1.1 --- a/src/mime.c	Sat Sep 24 20:28:36 2016 +0200
     1.2 +++ b/src/mime.c	Tue Sep 27 01:14:22 2016 +0200
     1.3 @@ -581,7 +581,7 @@
     1.4      plaintext = (msg->longmsg) ? msg->longmsg : "";
     1.5      htmltext = msg->longmsg_formatted;
     1.6  
     1.7 -    if (htmltext) {
     1.8 +    if (htmltext && (htmltext[0] != '\0')) {
     1.9          status = mime_html_text(plaintext, htmltext, &mime);
    1.10          if (status != PEP_STATUS_OK)
    1.11              goto pep_error;