<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jon Stahl&#039;s Journal &#187; sympa</title>
	<atom:link href="http://jstahl.org/archives/tag/sympa/feed/" rel="self" type="application/rss+xml" />
	<link>http://jstahl.org</link>
	<description>Politics, the environment, technology, activism. And stuff.</description>
	<lastBuildDate>Sun, 05 Feb 2012 00:30:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Sympa tip: changing domains</title>
		<link>http://jstahl.org/archives/2009/11/06/sympa-tip-changing-domains/</link>
		<comments>http://jstahl.org/archives/2009/11/06/sympa-tip-changing-domains/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 01:17:01 +0000</pubDate>
		<dc:creator>Jon Stahl</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[sympa]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://jstahl.org/?p=2013</guid>
		<description><![CDATA[As many of my readers likely know by now, my organization ONE/Northwest has just rebranded itself as Groundwire.  Obviously, our domain name changed, and with it our email addresses.  One of the many &#8220;switchover&#8221; tasks we faced was the challenge &#8230; <a href="http://jstahl.org/archives/2009/11/06/sympa-tip-changing-domains/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>As many of my readers likely know by now, my organization ONE/Northwest has just <a href="http://groundwire.org">rebranded itself as Groundwire</a>.  Obviously, our domain name changed, and with it our email addresses.  One of the many &#8220;switchover&#8221; tasks we faced was the challenge of updating our email addresses on the many <a href="http://sympa.org">Sympa</a>-powered email lists we host.</p>

<p>The obvious solution is to have each user log in one-by-one and change their email address in the Sympa web UI.  This has two major disadvantages, though:</p>

<p>1) It&#8217;s a real pain for 2o+ users to log in and update their addresses</p>

<p>2) That would only affect list subscriptions, not list configurations such as owners and moderators, because Sympa doesn&#8217;t yet stores this configuration info in its database; it&#8217;s still stored in a text-based config file on the filesystem.  Ugh.</p>

<p>So, in the end, a twofold approach was necessary.  Here&#8217;s what I did.</p>

<p><strong>Updating list subscribers in Sympa&#8217;s MySQL database
</strong></p>

<p>I used <a href="http://code.google.com/p/sqlyog/">SQLyog</a>, a popular Windows-based GUI front-end to MySQL.  (You could also use PHPmyadmin on your server to provide a web interface.)  I did the following queries to update onenw.org to groundwire.org in all user emails.</p>

<pre>update user_table set user_email = replace(user_email, 'onenw.org', 'groundwire.org');
update subscriber_table set user_subscriber = replace(user_subscriber, 'onenw.org', 'groundwire.org');
update admin_table set user_admin = replace(user_admin, 'onenw.org', 'groundwire.org');</pre>

<p><strong>Updating list owners/moderators in Sympa&#8217;s filesystem-based config files</strong></p>

<p>Sympa stores list owners and moderators in a plain-text file on the filesystem.  Here&#8217;s how I mass-updated it.</p>

<p>On the server command line, I navigated to sympa&#8217;s expl folder at /home/sympa/expl.  This directory contains one subdirectory for each list, and each list contains a &#8220;config&#8221; file.</p>

<p>I executed the command:</p>

<pre>find . -name config | xargs perl -p -ie 's/onenw\.org/groundwire\.org/g'</pre>

<p>This took a couple of minutes to iterate over a little more than 1000 lists.  Not blazing fast, but not too horrible.</p>

<p>I think a great feature addition to Sympa would be a script that would take either one email or one domain as an input, and execute these commands in parallel.</p>
]]></content:encoded>
			<wfw:commentRss>http://jstahl.org/archives/2009/11/06/sympa-tip-changing-domains/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

