mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Don't do anything if the address has not been modified.
This commit is contained in:
@@ -86,6 +86,8 @@ def onMailboxDeleted(mailboxes):
|
||||
|
||||
@events.observe("MailboxModified")
|
||||
def onMailboxModified(mailbox):
|
||||
if not hasattr(mailbox, 'old_full_address'):
|
||||
return
|
||||
if mailbox.full_address == mailbox.old_full_address:
|
||||
return
|
||||
alias = Alias.objects.get(full_address=mailbox.old_full_address)
|
||||
|
||||
Reference in New Issue
Block a user