Ticket #493 (testing defect: fixed)
maiadbtool.pl --delete-address can leave database in incorrect state
|Reported by:||dmorton||Owned by:||mortonda@…|
maiadbtool --delete-address currently deletes the users table entry, but if the entry is a primary address with secondary addresses linked, it does not delete the maia_user; however, autocreation expects there to *not* be a maia_user if there is no matching row in the users table.
This can lead to errors from amavisd-maia attempting to create duplicate keys.
maiadbtool should issue a warning when attempting to delete a primary address that has secondary addresses linked to it.