Auto discard after max_days_to_hold not working.

Dear all,
I have migrated around 300 mailing lists from Mailman 2 to Mailman 3. In most of the mailing lists we have configured "max_days_to_hold" to 2. It was working fine in Mailman 2. However, it is not working in Mailman 3.
Mailman version: GNU Mailman 3.3.10 (Tom Sawyer) Python 3.11.9 Rocky Linux 9.5
Crontab: @daily /opt/mailman/venv/bin/mailman digests --periodic 00 08 * * * /opt/mailman/venv/bin/mailman notify
0,15,30,45 * * * * /opt/mailman/venv/bin/mailman-web runjobs quarter_hourly @hourly /opt/mailman/venv/bin/mailman-web runjobs hourly @daily /opt/mailman/venv/bin/mailman-web runjobs daily @weekly /opt/mailman/venv/bin/mailman-web runjobs weekly @monthly /opt/mailman/venv/bin/mailman-web runjobs monthly @yearly /opt/mailman/venv/bin/mailman-web runjobs yearly/opt/mailman/venv/bin/mailman-web runjobs minutely
Please guide me in this regard.
Regards, Hitachi.

Hitashi mancho via Mailman-users writes:
I have migrated around 300 mailing lists from Mailman 2 to Mailman 3. In most of the mailing lists we have configured "max_days_to_hold" to 2. It was working fine in Mailman 2. However, it is not working in Mailman 3.
This doesn't seem to be exposed in Postorius. It's not all that old in Mailman 3 (April 2020) so it's possible that it is not moved from Mailman 2 to Mailman 3 by the migration scripts.
You can use "mailman withlist" to access that variable: Use "mailman withlist -l LIST@DOMAIN.TLD", then at the prompt:
m.max_days_to_hold
to examine the value for LIST@DOMAIN.TLD.
To do a mass change, something like
for ml in mailman lists
; do
mailman withlist -l $ml -r fix_mdth
done
where you put in Mailman's bin directory the file 'fix_mdth.py' containing
def fix_mdth(ml): ml.max_days_to_hold = 2 commit()
Of course if there are list where you want a longer or indefinite hold you'll need to change those back, since this approach changes all of them.
You can get more information with "mailman withlist --detail".
-- GNU Mailman consultant (installation, migration, customization) Sirus Open Source https://www.siriusopensource.com/ Software systems consulting in Europe, North America, and Japan
participants (2)
-
Hitashi mancho
-
Stephen J. Turnbull