Disable payload header mechanisms for pgp/inline mails
@@ -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();
