The following is the GNU All-permissive License as recommended in https://www.gnu.org/licenses/license-recommendations.en.html
Copyright (C) 2024 Free Software Foundation sysadmin@fsf.org
Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright notice and this notice are preserved. This file is offered as-is, without any warranty.
Contributions are welcome. See https://savannah.gnu.org/maintenance/fsf/.
Renaming a list
Based on https://wiki.list.org/DOC/4.70%20How%20do%20I%20change%20the%20name%20of%20%28rename%29%20a%20list%3F and how we do things:
Post to the list that it is being renamed, and for a few minutes it might not be working properly and they should avoid it. If this list gets lots of posts, then you may want to do something to prevent new posts, or might want to script all the below stuff so it gets done very fast. Also mention that old listinfo and archive urls will be redirected, but other urls wont be.
As root:
oldlist=x
newlist=y
cd /var/lib/mailman
mv lists/$oldlist lists/$newlist
mv archives/private/$oldlist archives/private/$newlist
mv archives/private/$oldlist.mbox archives/private/$newlist.mbox
mv archives/private/$newlist.mbox/$oldlist.mbox archives/private/$newlist.mbox/$newlist.mbox
Manually run the appropriate cronjob from /etc/cron.d/mailman-export
As mharc:
cd ~/mbox
mv OLDLIST NEWLIST
Regenerate the archive using commands from edit-lists-archive
Add redirects to the all-lists-common.conf
apache file and reload
apache. See the ring -> jami rename for example.
If you want the old address to continue working, update ansible-configs/roles/mailman/files/exim-conf.d/router/030_exim4-config_mailman_bogus
for example, for erc-discuss rename to emacs-erc:
erc_rename:
driver = redirect
local_parts = erc-discuss
data = emacs-erc@gnu.org