<?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>mcBachmann.de TechBlog &#187; mailing list</title>
	<atom:link href="http://blog.mcbachmann.de/tag/mailing-list/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mcbachmann.de</link>
	<description>Der Blog zur Website ;-)</description>
	<lastBuildDate>Mon, 06 Sep 2010 13:11:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>mailman: Reinject all pending mails from command line.</title>
		<link>http://blog.mcbachmann.de/linux/mailman-reinject-all-pending-mails-from-command-line</link>
		<comments>http://blog.mcbachmann.de/linux/mailman-reinject-all-pending-mails-from-command-line#comments</comments>
		<pubDate>Fri, 11 Sep 2009 08:27:17 +0000</pubDate>
		<dc:creator>Sven Bachmann</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mailing list]]></category>
		<category><![CDATA[mailman]]></category>
		<category><![CDATA[reinject]]></category>

		<guid isPermaLink="false">http://blog.mcbachmann.de/?p=399</guid>
		<description><![CDATA[Mailman doesn&#8217;t have a command to re-inject all pending mails for the command line. Because in Debian Lenny the web-part is broken (wants to be recompiled because of wrong Apache group) I needed to re-inject a lot of mails which were pending. 
WARNING: Use this only if you have a backup. This script is new [...]]]></description>
			<content:encoded><![CDATA[<p>Mailman doesn&#8217;t have a command to re-inject all pending mails for the command line. Because in Debian Lenny the web-part is broken (wants to be recompiled because of wrong Apache group) I needed to re-inject a lot of mails which were pending. <span id="more-399"></span></p>
<div class="warn"><em>WARNING: Use this only if you have a backup. This script is new and not tested on a wide basis. This means it can destroy all your data (including mails)! <strong>Use it on your own risk.</strong></em></div>
<p>Lets assume you already discarded spam and other non-allowed mails via the <strong>discard</strong> command and what is leftover are mails which are now accepted by mailman, because you added the sender to the allow-list.</p>
<p>First you will need a handy script from <a href="http://mg.pov.lt/blog/mailman-spam.html">Marius Gedminas</a>: <a href="http://mg.pov.lt/mmextract.py">mmextract.py</a>.</p>
<p>Put this script in <strong>/usr/lib/mailman/bin/mmextract.py</strong> in case you need this more than once. Next, save the following script also to <strong>/usr/lib/mailman/bin</strong>: <a href='http://blog.mcbachmann.de/wp-content/uploads/2009/09/reinject_and_discard.sh'>reinject_and_discard.sh</a>.</p>
<blockquote><p><code><b>reinject_and_discard.sh</b><br />
<br/>#!/bin/bash</p>
<p><br/>for i in `ls heldmsg-codetracker-*`; do<br />
&nbsp;&nbsp;&nbsp;&nbsp;/usr/lib/mailman/bin/inject -l codetracker <(/usr/lib/mailman/bin/mmextract.py $i)<br />
&nbsp;&nbsp;&nbsp;&nbsp;/usr/lib/mailman/bin/discard $i<br />
done</code></p></blockquote>
<p>This script will discard the mail after it has been injected.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mcbachmann.de/linux/mailman-reinject-all-pending-mails-from-command-line/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
