mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-12-01 12:03:55 +01:00
@@ -213,10 +213,14 @@ class DlistForm(forms.ModelForm, DynamicForm):
|
||||
mb = Mailbox.objects.get(domain=domain, address=local_part)
|
||||
except Mailbox.DoesNotExist:
|
||||
raise AdminError(_("Mailbox %s does not exist" % v))
|
||||
if mb in self.int_rcpts:
|
||||
raise AdminError(_("Recipient %s already present" % v))
|
||||
self.int_rcpts += [mb]
|
||||
total += 1
|
||||
continue
|
||||
|
||||
if v in self.ext_rcpts:
|
||||
raise AdminError(_("Recipient %s already present" % v))
|
||||
self.ext_rcpts += [v]
|
||||
total += 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user