<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.inthewings.net/index.php?action=history&amp;feed=atom&amp;title=Addemail.pl</id>
	<title>Addemail.pl - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.inthewings.net/index.php?action=history&amp;feed=atom&amp;title=Addemail.pl"/>
	<link rel="alternate" type="text/html" href="http://wiki.inthewings.net/index.php?title=Addemail.pl&amp;action=history"/>
	<updated>2026-05-06T08:13:04Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>http://wiki.inthewings.net/index.php?title=Addemail.pl&amp;diff=2182&amp;oldid=prev</id>
		<title>Jka at 16:50, 16 August 2007</title>
		<link rel="alternate" type="text/html" href="http://wiki.inthewings.net/index.php?title=Addemail.pl&amp;diff=2182&amp;oldid=prev"/>
		<updated>2007-08-16T16:50:03Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Script to add emails to mailing lists in mailman. Otherwise you would have to go through the web form, which could be a pain.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
#!/usr/bin/perl&lt;br /&gt;
&lt;br /&gt;
use strict;&lt;br /&gt;
&lt;br /&gt;
my $mailman = &amp;quot;/usr/lib/mailman/bin&amp;quot;;&lt;br /&gt;
my $listlists = &amp;quot;$mailman/list_lists&amp;quot;;&lt;br /&gt;
my $add_members = &amp;quot;$mailman/add_members&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
my $email = $ARGV[0];&lt;br /&gt;
my $list = $ARGV[1];&lt;br /&gt;
if (!$email) {&lt;br /&gt;
    print &amp;quot;Usage: addemail.pl &amp;lt;email address&amp;gt; &amp;lt;list name&amp;gt;\n&amp;quot;;&lt;br /&gt;
    exit;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
if (!$list) {&lt;br /&gt;
    print &amp;quot;No list name was given. The following lists are available:\n&amp;quot;;&lt;br /&gt;
    system(&amp;quot;$listlists&amp;quot;);&lt;br /&gt;
    exit;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
system(&amp;quot;echo $email &amp;gt; /tmp/email.txt&amp;quot;);&lt;br /&gt;
system(&amp;quot;$add_members -r /tmp/email.txt $list&amp;quot;);&lt;br /&gt;
system(&amp;quot;rm /tmp/email.txt&amp;quot;);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jka</name></author>
		
	</entry>
</feed>