Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added disposition type inline to html parts

  • Loading branch information...
commit 016aca79d92e40d6004daf251595d8d85e07243c 1 parent d2fd023
@mronge mronge authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 Source/CTMIME_HtmlPart.m
View
7 Source/CTMIME_HtmlPart.m
@@ -89,10 +89,15 @@ - (struct mailmime *)buildMIMEStruct {
struct mailmime *mime_sub;
struct mailmime_content *content;
struct mailmime_parameter *param;
+ struct mailmime_disposition *disposition;
+ struct mailmime_mechanism *encoding;
int r;
/* text/html part */
- mime_fields = mailmime_fields_new_encoding(MAILMIME_MECHANISM_QUOTED_PRINTABLE);
+ encoding = mailmime_mechanism_new(MAILMIME_MECHANISM_QUOTED_PRINTABLE, NULL);
+ disposition = mailmime_disposition_new_with_data(MAILMIME_DISPOSITION_TYPE_INLINE, NULL, NULL, NULL, NULL, -1);
+ mime_fields = mailmime_fields_new_with_data(encoding, NULL, NULL, disposition, NULL);
+
content = mailmime_content_new_with_str("text/html");
param = mailmime_parameter_new(strdup("charset"), strdup(DEST_CHARSET));
r = clist_append(content->ct_parameters, param);
Please sign in to comment.
Something went wrong with that request. Please try again.