last/only remaining admin can self-unsubscribe via x-unsubscribe, leaving the list without any admin
The last/only admin of a list can
x-unsubscribe herself. Removing the last admin from a list.
This may be acceptable during a
schleuder-cli commandline session, where I quickly unsubscribe one admin just to replace her with another new admin 30sec later. But for mail-commands this leads into a dead-end where the list cannot be managed without commandline help anymore.
def self.unsubscribe(arguments, list, mail) maybe add something like:
if list.admins.size == 1 && list.admins.first.email == email return I18n.t( "plugins.subscription_management.cannot_unsubscribe_last_admin", email: email ) end
Sorry for not sending a PR, did not get around to setting up a schleuder-dev-environment by now.