On 4/30/22 02:13, Yvan ♞ wrote:
Hello, I transfered a mailing list from mailman to mailman 3, how can I change all users options in mass ? delivery status and receive own posting are blank by default (250 members is too long one by one..)
The blank
value for for a setting only means that the user has no list
based setting for that property. This means either the user's address
based value if any applies, otherwise the Mailman global value applies.
That said, if you imported the list with mailman import21
, the Mailman
2.1 settings should have been imported.
Finally, you could change a setting for all list members using mailman shell
. For example
$ bin/mailman shell -l list@example.com
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@example.com mailing list
>>> for member in m.members.members:
... member.preferences.delivery_status = DeliveryStatus.enabled
... member.preferences.receive_own_postings = True
...
>>> commit()
But this is probably unnecessary as the global settings probably apply and are probably set appropriately.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan