ENGINE-233: tested, fixed issue which made the html part be interpreted as an attachment. Reader for dirk to cry over. ENGINE-233
authorKrista Bennett <krista@pep-project.org>
Mon, 28 Aug 2017 15:51:39 +0200
branchENGINE-233
changeset 2012a1a5e174d3cd
parent 2011 86bbefb0e806
child 2013 3ef02ca70fec
ENGINE-233: tested, fixed issue which made the html part be interpreted as an attachment. Reader for dirk to cry over.
src/Makefile
src/mime.c
     1.1 --- a/src/Makefile	Mon Aug 28 11:29:31 2017 +0200
     1.2 +++ b/src/Makefile	Mon Aug 28 15:51:39 2017 +0200
     1.3 @@ -5,7 +5,7 @@
     1.4  
     1.5  include ../Makefile.conf
     1.6  
     1.7 -CFLAGS+= $(ETPAN_INC) -I../asn.1 -DSYSTEM_DB=\"$(SYSTEM_DB)\" $(EXTRA_MACROS)
     1.8 +CFLAGS+= -g $(ETPAN_INC) -I../asn.1 -DSYSTEM_DB=\"$(SYSTEM_DB)\" $(EXTRA_MACROS)
     1.9  LDFLAGS+= $(ETPAN_LIB) -L../asn.1 -shared
    1.10  LDLIBS+= -lc -letpan -lasn1 -lsqlite3
    1.11  NO_SOURCE=
     2.1 --- a/src/mime.c	Mon Aug 28 11:29:31 2017 +0200
     2.2 +++ b/src/mime.c	Mon Aug 28 15:51:39 2017 +0200
     2.3 @@ -166,7 +166,7 @@
     2.4  
     2.5      pEp_rid_list_t* resource = new_rid_node(PEP_RID_FILENAME, "msg.txt");
     2.6      
     2.7 -    submime = get_text_part(resource, "text/plain", plaintext, strlen(plaintext),
     2.8 +    submime = get_text_part(NULL, "text/plain", plaintext, strlen(plaintext),
     2.9              MAILMIME_MECHANISM_QUOTED_PRINTABLE);
    2.10      free_rid_list(resource);
    2.11      resource = NULL;
    2.12 @@ -209,8 +209,8 @@
    2.13          top_level_html_mime = mime;
    2.14      }
    2.15  
    2.16 -    resource = new_rid_node(PEP_RID_FILENAME, "msg.html");
    2.17 -    submime = get_text_part(resource, "text/html", htmltext, strlen(htmltext),
    2.18 +//    resource = new_rid_node(PEP_RID_FILENAME, "msg.html");
    2.19 +    submime = get_text_part(NULL, "text/html", htmltext, strlen(htmltext),
    2.20              MAILMIME_MECHANISM_QUOTED_PRINTABLE);
    2.21      free_rid_list(resource);
    2.22      resource = NULL;