Merge pull request #4720 from basilgello/pgp-signonly-ignore-encrypt-subject
Do not encrypt message subject if message body is not encrypted
This commit is contained in:
commit
496dac7f68
1 changed files with 1 additions and 1 deletions
|
@ -170,7 +170,7 @@ public class PgpMessageBuilder extends MessageBuilder {
|
|||
|
||||
boolean payloadSupportsMimeHeaders = !isPgpInlineMode;
|
||||
if (payloadSupportsMimeHeaders) {
|
||||
if (cryptoStatus.isEncryptSubject()) {
|
||||
if (cryptoStatus.isEncryptSubject() && shouldEncrypt) {
|
||||
moveSubjectIntoEncryptedPayload();
|
||||
}
|
||||
maybeAddGossipHeadersToBodyPart();
|
||||
|
|
Loading…
Reference in a new issue