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 l...@domain.tld | grep "$x"
M... <M....@web...>
# sudo -u list mailman delmembers -m "$x" -l l...@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 l...@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 l...@domain.tld mailing list
>>> mbr = m.members.get('M....@web...')
>>> mbr.preferences.delivery_status = DeliveryStatus.enabled
>>> commit()
```

--
Mark Sapiro <m...@msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

_______________________________________________
Mailman-users mailing list -- mailman-users@mailman3.org
To unsubscribe send an email to mailman-users-le...@mailman3.org
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at: 
https://lists.mailman3.org/archives/list/mailman-users@mailman3.org/message/RM6HZPDYDWTM4HI2AFIQTSUENSPKXTDI/

This message sent to arch...@mail-archive.com

Reply via email to