Re: [Mailman-Users] Retention policy for archives

Hi Mark ā prior to running this prune script, do I need to stop postfix first?
On 01/15/2018 11:44 AM, Dang Tran wrote:
Hi ā Iād like to setup a retention policy to delete all archives older than
1yr. please help me to setup this. thanks
See the script at <https://www.msapiro.net/scripts/prune_arch> (mirrored
at <https://fog.ccsf.edu/~msapiro/scripts/prune_arch>).
You could run this periodically via cron to do what you want. The down
side of this is each time you run it, the messages in the archive will
be renumbered and prior saved URLs to archived messages will no longer work.
--
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@python.org
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe:
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Best Regards, Dang

On 02/12/2018 01:28 PM, Dang Tran wrote:
Hi Mark ā prior to running this prune script, do I need to stop postfix first? ...> See the script at <https://www.msapiro.net/scripts/prune_arch> (mirrored at <https://fog.ccsf.edu/~msapiro/scripts/prune_arch>).
No. The script is safe. It locks the list while updating the LISTNAME.mbox, so other processes won't be updating concurrently.
Then the list is again locked by the bin/arch process while the HTML archive is being rebuilt.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
participants (2)
-
Dang Tran
-
Mark Sapiro