ENGINE-105: #comment added single-part handling for text/html - appears to be a case we simply skipped. ENGINE-105
authorKrista Grothoff <krista@pep-project.org>
Mon, 03 Oct 2016 13:39:56 +0200
branchENGINE-105
changeset 1229a618e68eb620
parent 1228 f123284ae55f
child 1230 78d35219bd31
ENGINE-105: #comment added single-part handling for text/html - appears to be a case we simply skipped.
src/mime.c
     1.1 --- a/src/mime.c	Mon Oct 03 11:40:57 2016 +0200
     1.2 +++ b/src/mime.c	Mon Oct 03 13:39:56 2016 +0200
     1.3 @@ -1300,7 +1300,14 @@
     1.4              }
     1.5          }
     1.6          else {
     1.7 -            if (_is_text_part(content, NULL) && msg->longmsg == NULL) {
     1.8 +            if (_is_text_part(content, "html") &&
     1.9 +                msg->longmsg_formatted == NULL) {
    1.10 +                status = interpret_body(mime, &msg->longmsg_formatted,
    1.11 +                                        NULL);
    1.12 +                if (status)
    1.13 +                    return status;
    1.14 +            }
    1.15 +            else if (_is_text_part(content, NULL) && msg->longmsg == NULL) {
    1.16                  status = interpret_body(mime, &msg->longmsg, NULL);
    1.17                  if (status)
    1.18                      return status;