diff options
Diffstat (limited to 'mail/src/leap/mail/service.py')
-rw-r--r-- | mail/src/leap/mail/service.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/mail/src/leap/mail/service.py b/mail/src/leap/mail/service.py index d595067b..f6e4d11b 100644 --- a/mail/src/leap/mail/service.py +++ b/mail/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 != '') |