Bugfix: The mailgate crashes with certain settings when mail is delivered locally

This commit is contained in:
fkrone 2015-05-25 00:28:55 +02:00
parent 4283c7ef4d
commit 6a7dda969b
1 changed files with 2 additions and 1 deletions

View File

@ -332,7 +332,8 @@ def sanitize_case_sense( address ):
address = address.lower()
else:
splitted_address = address.split('@')
address = splitted_address[0] + '@' + splitted_address[1].lower()
if len(splitted_address) > 1:
address = splitted_address[0] + '@' + splitted_address[1].lower()
return address