[go: up one dir, main page]

Page MenuHomePhabricator
Paste P2093

mailman - renaming a list (test)
ActivePublic

Authored by JohnLewis on Sep 25 2015, 5:10 PM.
Tags
None
Referenced Files
F2634785: mailman - renaming a list (test)
Sep 25 2015, 5:10 PM
Subscribers
None
johnflewis@fermium:~$ sudo -u list /usr/local/sbin/rename_list wmt wmt-test
Going to rename list 'wmt' to 'wmt-test'. Go ahead? (y/n)
y
First we are creating the new list 'wmt-test like any other list.
Please use your email address as list admin when asked. It will be overwritten later.'.
/var/lib/mailman/bin/newlist wmt-test
Enter the email of the person running the list:
Initial wmt-test password:
Hit enter to notify wmt-test owner...
Syncing list config and subscribers from 'wmt' to 'wmt-test'.
/usr/bin/rsync -avp /var/lib/mailman/lists/wmt/ /var/lib/mailman/lists/wmt-test/
sending incremental file list
./
config.pck
config.pck.last
digest.mbox
pending.pck
request.pck
sent 10,781 bytes received 114 bytes 21,790.00 bytes/sec
total size is 10,365 speedup is 0.95
Changing the list 'real_name' to 'wmt-test' after we copied config over.
echo "real_name = 'wmt-test'" | /var/lib/mailman/bin/config_list -i /dev/stdin wmt-test
Copying mbox file from 'wmt' to 'wmt-test'.
cp /var/lib/mailman/archives/private/wmt.mbox/wmt.mbox /var/lib/mailman/archives/private/wmt-test.mbox/wmt-test.mbox
Recreating HTML archives from mbox file for 'wmt-test'.
/var/lib/mailman/bin/arch wmt-test
#00000 <CAFJjkB6nBLODvwc24X3R_DunE8D-e44Q=UTqisYngbuQswg4FQ@mail.gmail.com>
figuring article archives
2015-September
Updating index files for archive [2015-September]
Date
Subject
Author
Thread
Computing threaded index
Updating HTML for article 0
Pickling archive state into /var/lib/mailman/archives/private/wmt-test/pipermail.pck
Making sure mbox file is owned by list:list.
chown list:list /var/lib/mailman/archives/private/wmt-test.mbox/wmt-test.mbox
Adding 'wmt@lists.wikimedia.org' to acceptable aliases on 'wmt-test'.
echo "acceptable_aliases = 'wmt@lists.wikimedia.org'" | /var/lib/mailman/bin/config_list -i /dev/stdin wmt-test
Please add the following code to './files/exim/listserver_aliases':
--------
wmt: wmt-test
--------
Please add the following code to './modules/mailman/templates/lists.wikimedia.org.org':
--------
Redirect permanent /mailman/listinfo/wmt https://<%= @lists_servername %>/mailm
an/listinfo/wmt-test
--------
To finish this please upload the code changes above to Gerrit and merge.
Test by sending a mail to both wmt@lists.wikimedia.org and wmt-test@lists.wikimedia.org.
Check the listinfo pages at https://lists.wikimedia.org/mailman/listinfo/wmt and https://lists.wikimedia.org/mailman/listinfo/wmt-test
Don't forget to update the ticket and that should be all. Bye.
johnflewis@fermium:~$ sudo -u list /var/lib/mailman/bin/rmlist -a wmt-test
Removing list info
Removing private archives
Removing private archives
Removing public archives
wmt-test public archives not found as /var/lib/mailman/archives/public/wmt-test.mbox
johnflewis@fermium:~$ sudo -u list /var/lib/mailman/bin/rmlist -a wmt
Removing list info
Removing private archives
Removing private archives
Removing public archives
wmt public archives not found as /var/lib/mailman/archives/public/wmt.mbox