]> saetta.ns0.it Git - solipa/libsolipa/commitdiff
SolipaMail: encoding degli allegati per camel >= 3.8.
authorAndrea Zagli <azagli@libero.it>
Sun, 12 Oct 2014 09:36:57 +0000 (11:36 +0200)
committerAndrea Zagli <azagli@libero.it>
Sun, 12 Oct 2014 09:36:57 +0000 (11:36 +0200)
src/mail.c

index 1d8e787c83823f51bb2e1d00f10542f34a38c610..ac665908a27406698ed2cff381b973cbf04bc4dc 100644 (file)
@@ -411,6 +411,9 @@ static CamelMimeMessage
 #endif
 
                                                                        part = camel_mime_part_new ();
+#if defined CAMEL38 || defined CAMEL3
+                                                                       camel_mime_part_set_encoding (part, CAMEL_TRANSFER_ENCODING_BASE64);
+#endif
                                                                        camel_medium_set_content (CAMEL_MEDIUM (part), dw);
                                                                        g_object_unref (dw);