summaryrefslogtreecommitdiff
path: root/mail/src/leap
diff options
context:
space:
mode:
authordrebs <drebs@leap.se>2013-11-21 18:16:12 -0200
committerdrebs <drebs@leap.se>2013-11-21 18:18:34 -0200
commitc2d4fc3623e5d4b6604d9b5f8e7e10e29bdbecf5 (patch)
tree0da9803ff991827b18e357ffeadca2e5e939e3ad /mail/src/leap
parent60729f09b381fcf5621ab2e012b664dd69cb3649 (diff)
Add the preference parameter to openpgp header. Closes #3878.
Diffstat (limited to 'mail/src/leap')
-rw-r--r--mail/src/leap/mail/smtp/gateway.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/src/leap/mail/smtp/gateway.py b/mail/src/leap/mail/smtp/gateway.py
index 523ac0d3..a78bd55b 100644
--- a/mail/src/leap/mail/smtp/gateway.py
+++ b/mail/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'])