From f0a88036896e223ed084628e952c4402478eea7a Mon Sep 17 00:00:00 2001 From: M66B Date: Thu, 13 Sep 2018 18:31:05 +0000 Subject: [PATCH] Send inline images Fixes #49 --- app/src/main/java/eu/faircode/email/MessageHelper.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/eu/faircode/email/MessageHelper.java b/app/src/main/java/eu/faircode/email/MessageHelper.java index 413436ad..4d7b3238 100644 --- a/app/src/main/java/eu/faircode/email/MessageHelper.java +++ b/app/src/main/java/eu/faircode/email/MessageHelper.java @@ -193,6 +193,8 @@ public class MessageHelper { } }); bpAttachment.setDataHandler(new DataHandler(dataSource)); + if (attachment.cid != null) + bpAttachment.setHeader("Content-ID", attachment.cid); multipart.addBodyPart(bpAttachment); }