Le 2026-08-05 04:52, Mark Sapiro a écrit :
The last line
```
member.delivery_mode = DeliveryMode.plaintext_digests
```
needs to be
```
member.preferences.delivery_mode =
DeliveryMode.plaintext_digests
`
``
Super! Thank you very much. Here is the working final (I hope the
formatting gets preserved across mail clients).
------------------------------------------------
How to change the Deliverymode for users in one
list from MIME Digest to PlainText Digest
------------------------------------------------
su mailman
(venv)$ mailman shell -l [email protected]
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 [email protected] mailing list
from mailman.interfaces.member import DeliveryMode
for member in m.subscribers.members:
... if member.delivery_mode != DeliveryMode.regular:
... member.preferences.delivery_mode =
DeliveryMode.plaintext_digests
...
commit()
exit()
------------------------------------------------
NOTE TO SELF:
Line 10 use 1 tab or 4 spaces after the first ellipse
Line 11 use 2 tabs or 8 spaces after the second ellipse.
Line 12 <ENTER>after the third and final ellipse
------------------------------------------------
_______________________________________________
Mailman-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
Archived at:
https://lists.mailman3.org/archives/list/[email protected]/message/CERZRG77PACBWYSBGF7USSG2LVBCHZ2V/
This message sent to [email protected]