summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/services
diff options
context:
space:
mode:
authorTomás Touceda <chiiph@leap.se>2013-11-06 11:54:03 -0300
committerTomás Touceda <chiiph@leap.se>2013-11-07 07:41:04 -0300
commit9674b93f9d6fbe25e10330a6f807e5b7196c01b0 (patch)
tree90a90d1f1cbc2eed6c1c1e07fe4649e97ea14d8f /src/leap/bitmask/services
parentc84b997124ea08338363c7b2b95747e30bf9e498 (diff)
Reject sender if it's not the logged in user
Diffstat (limited to 'src/leap/bitmask/services')
-rw-r--r--src/leap/bitmask/services/mail/conductor.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/bitmask/services/mail/conductor.py b/src/leap/bitmask/services/mail/conductor.py
index 4d34a13b..6dcf0c6f 100644
--- a/src/leap/bitmask/services/mail/conductor.py
+++ b/src/leap/bitmask/services/mail/conductor.py
@@ -200,6 +200,7 @@ class SMTPControl(object):
from leap.mail.smtp import setup_smtp_relay
self._smtp_service, self._smtp_port = setup_smtp_relay(
port=2013,
+ userid=self.userid,
keymanager=self._keymanager,
smtp_host=host,
smtp_port=port,
@@ -345,7 +346,7 @@ class MailConductor(IMAPControl, SMTPControl):
return self._userid
@userid.setter
- def _userid(self, userid):
+ def userid(self, userid):
"""
Sets the user id this conductor is configured for.