particular list member seems unmanageable from CLI

We have a list member that got disabled due to bounces, but that should be fixed after we implemented DMARC and SPF.
So as I don't know how to access the disabled status from the CLI (we have no GUI), I tried to delete and re-subscribe them. But although they are listed as a member, they cannot be deleted:
# sudo -u list mailman members list@domain.tld | grep "$x" M... <M....@web...> # sudo -u list mailman delmembers -m "$x" -l list@domain.tld Member not subscribed (skipping): M... <M....@web...>
How can I fix this from the command line? Either by restoring their "disabled" status, or deleting and re-subscribing them?

On 8/22/25 02:32, Stephan via Mailman-users wrote:
We have a list member that got disabled due to bounces, but that should be fixed after we implemented DMARC and SPF.
So as I don't know how to access the disabled status from the CLI (we have no GUI), I tried to delete and re-subscribe them. But although they are listed as a member, they cannot be deleted:
# sudo -u list mailman members list@domain.tld | grep "$x" M... <M....@web...> # sudo -u list mailman delmembers -m "$x" -l list@domain.tld Member not subscribed (skipping): M... <M....@web...>
It looks like $x is M... <M....@web...>
. It should be just M....@web...
How can I fix this from the command line? Either by restoring their "disabled" status, or deleting and re-subscribing them?
There is no mailman
subcommand to change a members delivery status.
You can do it in mailman shell
with an interaction like
# sudo -u list mailman shell -l list@domain.tld
Welcome to the GNU Mailman shell
Use commit() to commit changes.
Use abort() to discard changes since the last commit.
Exit with ctrl+D does an implicit commit() but exit() does not.
The variable 'm' is the list@domain.tld mailing list
>>> mbr = m.members.get('M....@web...')
>>> mbr.preferences.delivery_status = DeliveryStatus.enabled
>>> commit()
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Mark Sapiro
-
Stephan