diff options
author | drebs <drebs@leap.se> | 2014-11-25 11:55:49 -0200 |
---|---|---|
committer | drebs <drebs@leap.se> | 2014-11-25 11:55:49 -0200 |
commit | a3acaed8512c16fc1d53141d288d60eacc6ef94e (patch) | |
tree | cb01d4f96322213082b4469567831cc823464813 /src/leap/mail/service.py | |
parent | 040faf2bf94db227246a00b38da8f92bfa0c8fa8 (diff) |
Move SMTP gateway str assertion to inside OutgoingMail.
Diffstat (limited to 'src/leap/mail/service.py')
-rw-r--r-- | src/leap/mail/service.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/leap/mail/service.py b/src/leap/mail/service.py index d595067..f6e4d11 100644 --- a/src/leap/mail/service.py +++ b/src/leap/mail/service.py @@ -81,8 +81,9 @@ class OutgoingMail: :type port: int """ - # XXX: should we keep these checks? # assert params + leap_assert_type(from_address, str) + leap_assert('@' in from_address) leap_assert_type(keymanager, KeyManager) leap_assert_type(host, str) leap_assert(host != '') |