Re: [Mailman-Users] Changing list name - any scripts or utilities?
Thanks!!! The perl script works! I am just learning perl and all of this stuff so I didn't have a clue how to do a script to change something in the files. You have now cut my job down from over 1 hour a list to about 10 minutes a list. Thank you! Heather From: Todd Subject: Re: [Mailman-Users] Changing list name - any scripts or utilities? Date: Wed, 05 Mar 2003 14:06:28 -0800 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Heather J. Lubinsky wrote: The only thing it doesn't seem to change is the more info on this list link I just tried this and it worked fine for me. I'll detail the steps I took and perhaps you'll notice something you have done differently that would account for the different behavior you're getting. $ ~mailman/bin/newlist newname [EMAIL PROTECTED] password $ cd ~mailman/archives/private $ cp oldname.mbox/oldname.mbox newname.mbox/newname.mbox $ ~mailman/bin/arch newname I then checked the list archive page and the link appears to be correct. Anyone have any ideas how to change the more info on this list link other than edited EVERY html archive file? Even this wouldn't be a big deal. You could use a quick perl command to do this: $ cd ~mailman/archives/private/newname $ perl -pi -e 's|listinfo/oldname|listinfo/newname|g' `find . -name '*.html'` I don't know though if you do this whether or not subsequent archives will get created right or not. Something like the method above would be better. Of course, it would be handy to wrap all of this into a quick script to rename a list. Surely someone else has already done this. Anyone have a pointer to the archives where this might have already been answered? :) - -- Todd OpenPGP - KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp Relying on government to protect your privacy is like asking a peeping tom to install your window blinds. -- John Barlow, co-founder of EFF -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Changing list name - any scripts or utilities?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thanks!!! The perl script works! Cool. No problem. You have now cut my job down from over 1 hour a list to about 10 minutes a list. Excellent. Should I expect a kickback? ;-) Let the list know if future archives get created with the proper links. - -- Todd OpenPGP - KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp Conscience is what hurts when everything else feels so good. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl. iD8DBQE+Z7p5uv+09NZUB1oRAmgYAJ44zZ0qnXQHnI2JhPUK4M7OIuzj0QCg3LSb +XLqYthxfpDIvAKHuPi4X0Q= =wywK -END PGP SIGNATURE- -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Changing list name - any scripts or utilities?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Heather J. Lubinsky wrote: Has anyone written a script that will go through and change a name in the archives (ie look for a certain string like a link to the information page) and change it to the new name. Wouldn't running ~mailman/bin/arch to recreate the archives from the lists mbox work? The mbox file should be in ~mailman/archives/private/listname.mbox - -- Todd OpenPGP - KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp If you know the reason for the rule, know you are breaking it, and know why the rule does not apply, go ahead and break it. -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl. iD8DBQE+Zkpvuv+09NZUB1oRAp7OAKDQGwGGedFdGuSOtRCRjJSNd8dOCgCfaBFm X5Dfb9SGkWnbAXefVysyWeE= =2Kd5 -END PGP SIGNATURE- -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Changing list name - any scripts or utilities?
On Wed, 2003-03-05 at 14:05, Todd wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Heather J. Lubinsky wrote: Has anyone written a script that will go through and change a name in the archives (ie look for a certain string like a link to the information page) and change it to the new name. Wouldn't running ~mailman/bin/arch to recreate the archives from the lists mbox work? The mbox file should be in ~mailman/archives/private/listname.mbox That should work, although you would still have the problem that list archive links referenced from Google and other web pages would be messed up. I'd consider adding RewriteRule's to the web server to force all references to the old lists to switch to the new list name. --Jeremy -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Changing list name - any scripts or utilities?
The only thing it doesn't seem to change is the more info on this list link I don't have any problems with google and such because everything is private and there are no links. Anyone have any ideas how to change the more info on this list link other than edited EVERY html archive file? Heather - Original Message - From: Jeremy Portzer [EMAIL PROTECTED] To: mailman-users [EMAIL PROTECTED] Sent: Wednesday, March 05, 2003 12:11 PM Subject: Re: [Mailman-Users] Changing list name - any scripts or utilities? On Wed, 2003-03-05 at 14:05, Todd wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Heather J. Lubinsky wrote: Has anyone written a script that will go through and change a name in the archives (ie look for a certain string like a link to the information page) and change it to the new name. Wouldn't running ~mailman/bin/arch to recreate the archives from the lists mbox work? The mbox file should be in ~mailman/archives/private/listname.mbox That should work, although you would still have the problem that list archive links referenced from Google and other web pages would be messed up. I'd consider adding RewriteRule's to the web server to force all references to the old lists to switch to the new list name. --Jeremy -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/heather%40pcgal.com -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org
Re: [Mailman-Users] Changing list name - any scripts or utilities?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Heather J. Lubinsky wrote: The only thing it doesn't seem to change is the more info on this list link I just tried this and it worked fine for me. I'll detail the steps I took and perhaps you'll notice something you have done differently that would account for the different behavior you're getting. $ ~mailman/bin/newlist newname [EMAIL PROTECTED] password $ cd ~mailman/archives/private $ cp oldname.mbox/oldname.mbox newname.mbox/newname.mbox $ ~mailman/bin/arch newname I then checked the list archive page and the link appears to be correct. Anyone have any ideas how to change the more info on this list link other than edited EVERY html archive file? Even this wouldn't be a big deal. You could use a quick perl command to do this: $ cd ~mailman/archives/private/newname $ perl -pi -e 's|listinfo/oldname|listinfo/newname|g' `find . -name '*.html'` I don't know though if you do this whether or not subsequent archives will get created right or not. Something like the method above would be better. Of course, it would be handy to wrap all of this into a quick script to rename a list. Surely someone else has already done this. Anyone have a pointer to the archives where this might have already been answered? :) - -- Todd OpenPGP - KeyID: 0xD654075A | URL: www.pobox.com/~tmz/pgp Relying on government to protect your privacy is like asking a peeping tom to install your window blinds. -- John Barlow, co-founder of EFF -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.1 (GNU/Linux) Comment: When crypto is outlawed bayl bhgynjf jvyy unir cevinpl. iD8DBQE+ZnSjuv+09NZUB1oRAkDaAKC6YcabX1KE/T2FdqOmIiLt4kiuuQCfZRHo GAk3GT6/0Z6YALqsGFzRU6o= =zQIO -END PGP SIGNATURE- -- Mailman-Users mailing list [EMAIL PROTECTED] http://mail.python.org/mailman/listinfo/mailman-users Mailman FAQ: http://www.python.org/cgi-bin/faqw-mm.py Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/ This message was sent to: [EMAIL PROTECTED] Unsubscribe or change your options at http://mail.python.org/mailman/options/mailman-users/archive%40jab.org