Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0fbc9423 authored by cketti's avatar cketti Committed by GitHub
Browse files

Merge pull request #2026 from k9mail/fix-pgp-inline-encoding

set content-transfer-encoding for RawDataBody in `setBody`
parents 92196c01 c5234d88
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -42,6 +42,9 @@ public class MimeMessageHelper {
            part.setHeader(MimeHeader.HEADER_CONTENT_TYPE, contentType);

            setEncoding(part, MimeUtil.ENC_QUOTED_PRINTABLE);
        } else if (body instanceof RawDataBody) {
            String encoding = ((RawDataBody) body).getEncoding();
            part.setHeader(MimeHeader.HEADER_CONTENT_TRANSFER_ENCODING, encoding);
        }
    }