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

Commit f7fb48f5 authored by Vincent Breitmoser's avatar Vincent Breitmoser
Browse files

Disable payload header mechanisms for pgp/inline mails

parent 10875134
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -153,11 +153,14 @@ public class PgpMessageBuilder extends MessageBuilder {
            if (messageContentBodyPart == null) {
                messageContentBodyPart = createBodyPartFromMessageContent();

                boolean payloadSupportsMimeHeaders = !isPgpInlineMode;
                if (payloadSupportsMimeHeaders) {
                    if (cryptoStatus.isEncryptSubject()) {
                        encryptMessageSubject();
                    }
                    maybeAddGossipHeadersToBodyPart();
                }
            }

            if (pgpApiIntent == null) {
                boolean encryptToSelfOnly = isDraft();