For now, it is not necessary to make a distinction between "loginname" and "address".

The definitive format is : "address;password;first name;last name".

see #191
This commit is contained in:
Antoine Nguyen
2012-01-10 11:08:39 +01:00
parent 7eee4c1284
commit b1e70c513f
+2 -2
View File
@@ -349,9 +349,9 @@ class Mailbox(DatesAware):
:param line: a list containing the expected information
"""
if len(line) < 5:
if len(line) < 4:
raise AdminError(_("Invalid line"))
mailbox, domname = split_mailbox(line[4])
mailbox, domname = split_mailbox(line[0])
self.address = mailbox
try:
self.domain = Domain.objects.get(name=domname)