ENGINE-514: fixing it on our side instead of etpan, as we neither need nor want recursive processing of the node ENGINE-514
authorKrista 'DarthMama' Bennett <krista@pep.foundation>
Wed, 08 Apr 2020 12:31:57 +0200
branchENGINE-514
changeset 454068bf5211fe05
parent 4539 154b1a7b15f4
child 4541 1b934430dfb9
child 4543 cbc8a9a8fcff
ENGINE-514: fixing it on our side instead of etpan, as we neither need nor want recursive processing of the node
src/etpan_mime.c
     1.1 --- a/src/etpan_mime.c	Wed Apr 08 10:03:13 2020 +0200
     1.2 +++ b/src/etpan_mime.c	Wed Apr 08 12:31:57 2020 +0200
     1.3 @@ -898,7 +898,9 @@
     1.4  
     1.5          switch  (content->ct_type->tp_data.tp_discrete_type->dt_type) {
     1.6              case MAILMIME_DISCRETE_TYPE_TEXT:
     1.7 -                _main_type = "text";
     1.8 +                _main_type = (content->ct_subtype && 
     1.9 +                              strcasecmp(content->ct_subtype, "rfc822") == 0 ?
    1.10 +                              "message" : "text");
    1.11                  break;
    1.12              case MAILMIME_DISCRETE_TYPE_IMAGE:
    1.13                  _main_type = "image";