diff options
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 != '') |