From bdd391612c9f5923a94510487d2cfe177c27204e Mon Sep 17 00:00:00 2001 From: drebs Date: Thu, 21 Nov 2013 18:16:12 -0200 Subject: Add the preference parameter to openpgp header. Closes #3878. --- changes/feature_3878_add-preference-to-openpgp-header | 2 ++ src/leap/mail/smtp/gateway.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 changes/feature_3878_add-preference-to-openpgp-header diff --git a/changes/feature_3878_add-preference-to-openpgp-header b/changes/feature_3878_add-preference-to-openpgp-header new file mode 100644 index 0000000..4513bf6 --- /dev/null +++ b/changes/feature_3878_add-preference-to-openpgp-header @@ -0,0 +1,2 @@ + o Add 'signencrypt' preference to OpenPGP header on outgoing email. Closes + #3878". diff --git a/src/leap/mail/smtp/gateway.py b/src/leap/mail/smtp/gateway.py index 523ac0d..a78bd55 100644 --- a/src/leap/mail/smtp/gateway.py +++ b/src/leap/mail/smtp/gateway.py @@ -683,6 +683,7 @@ class EncryptedMessage(object): username, domain = signkey.address.split('@') newmsg.add_header( 'OpenPGP', 'id=%s' % signkey.key_id, - url='https://%s/key/%s' % (domain, username)) + url='https://%s/key/%s' % (domain, username), + preference='signencrypt') # delete user-agent from origmsg del(origmsg['user-agent']) -- cgit v1.2.3