<?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>mailman &#8211; Arun&#8217;s blog</title>
	<atom:link href="https://arunns.net/tag/mailman/feed/" rel="self" type="application/rss+xml" />
	<link>https://arunns.net</link>
	<description>Arun&#039;s blog</description>
	<lastBuildDate>Sat, 21 Oct 2023 14:08:34 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.4.2</generator>
	<item>
		<title>Delete mailman archieves</title>
		<link>https://arunns.net/delete-mailman-archieves/</link>
					<comments>https://arunns.net/delete-mailman-archieves/#respond</comments>
		
		<dc:creator><![CDATA[Arun N.]]></dc:creator>
		<pubDate>Mon, 09 Apr 2012 16:07:32 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mailman]]></category>
		<category><![CDATA[mailman]]></category>
		<guid isPermaLink="false">http://arunnsblog.com/?p=587</guid>

					<description><![CDATA[If required take backup of the archives $ cp -a /var/lib/mailman/archives/private/&#60;listname&#62;/* &#60;backup_directory&#62; Remove the archives $ rm -rf &#60;listname&#62;/* Once it is removed recreate the html archive files $ mailman/bin/arch &#60;listname&#62; ./arun]]></description>
										<content:encoded><![CDATA[<p>If required take backup of the archives</p>
<pre>$ cp -a /var/lib/mailman/archives/private/&lt;listname&gt;/* &lt;backup_directory&gt;</pre>
<p>Remove the archives</p>
<pre>$ rm -rf &lt;listname&gt;/*</pre>
<p>Once it is removed recreate the html archive files</p>
<pre>$ mailman/bin/arch &lt;listname&gt;</pre>
<p>./arun</p>
]]></content:encoded>
					
					<wfw:commentRss>https://arunns.net/delete-mailman-archieves/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Cleanup mailman held messages</title>
		<link>https://arunns.net/cleanup-mailman-held-messages/</link>
					<comments>https://arunns.net/cleanup-mailman-held-messages/#respond</comments>
		
		<dc:creator><![CDATA[Arun N.]]></dc:creator>
		<pubDate>Wed, 21 Oct 2009 10:54:37 +0000</pubDate>
				<category><![CDATA[e-mail]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mailman]]></category>
		<guid isPermaLink="false">http://arunnsblog.com/blog/?p=50</guid>

					<description><![CDATA[Occasionally, you might encounter a situation where messages get held up in mailman for various reasons, and it&#8217;s essential to know how to clean up these held messages. Cleaning Up with the Command Line: The process of cleaning up held messages in Mailman is relatively straightforward, thanks to some handy command-line tools. 1. Navigating to [&#8230;]]]></description>
										<content:encoded><![CDATA[<p>Occasionally, you might encounter a situation where messages get held up in mailman for various reasons, and it&#8217;s essential to know how to clean up these held messages.</p>
<p><strong>Cleaning Up with the Command Line:</strong></p>
<p>The process of cleaning up held messages in Mailman is relatively straightforward, thanks to some handy command-line tools.</p>
<p><strong>1. Navigating to the Mailman Directory:</strong></p>
<p>First, open your terminal and navigate to the Mailman directory. You can usually find it at:</p>
<div class="bg-black rounded-md mb-4">
<div class="flex items-center relative text-gray-200 bg-gray-800 gizmo:dark:bg-token-surface-primary px-4 py-2 text-xs font-sans justify-between rounded-t-md"><button class="flex ml-auto gizmo:ml-0 gap-2 items-center">Copy code</button></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">$ <span class="hljs-built_in">cd</span> /usr/lib/mailman<br />
</code></div>
</div>
<p><strong>2. Using <code>bin/discard</code>:</strong></p>
<p>To clean up held messages, you can typically use the <code>bin/discard</code> command. Run the following command, specifying the path to the held messages:</p>
<div class="bg-black rounded-md mb-4">
<div class="flex items-center relative text-gray-200 bg-gray-800 gizmo:dark:bg-token-surface-primary px-4 py-2 text-xs font-sans justify-between rounded-t-md"><button class="flex ml-auto gizmo:ml-0 gap-2 items-center">Copy code</button></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">$ bin/discard /var/lib/mailman/data/heldmsg--*<br />
</code></div>
</div>
<p><strong>Cleaning Up a Long List of Held Messages:</strong></p>
<p>In some cases, you might have a long list of held messages to deal with. In this situation, you can make use of a more efficient approach.</p>
<p><strong>1. Navigating to the Appropriate Directory:</strong></p>
<p>Navigate to the Mailman data directory where the held messages are stored. This is typically located at:</p>
<div class="bg-black rounded-md mb-4">
<div class="flex items-center relative text-gray-200 bg-gray-800 gizmo:dark:bg-token-surface-primary px-4 py-2 text-xs font-sans justify-between rounded-t-md"><button class="flex ml-auto gizmo:ml-0 gap-2 items-center">Copy code</button></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">$ <span class="hljs-built_in">cd</span> /var/lib/mailman<br />
</code></div>
</div>
<p><strong>2. Using <code>find</code> and <code>xargs</code>:</strong></p>
<p>The <code>find</code> command helps you locate all the held messages. It searches for files with the name pattern &#8220;heldmsg&#8211;*&#8221;. After finding them, it passes them as arguments to the <code>discard</code> command using <code>xargs</code>.</p>
<p>Execute the following command:</p>
<div class="bg-black rounded-md mb-4">
<div class="flex items-center relative text-gray-200 bg-gray-800 gizmo:dark:bg-token-surface-primary px-4 py-2 text-xs font-sans justify-between rounded-t-md"><button class="flex ml-auto gizmo:ml-0 gap-2 items-center">Copy code</button></div>
<div class="p-4 overflow-y-auto"><code class="!whitespace-pre hljs language-bash">$ find data -name heldmsg--* -<span class="hljs-built_in">print</span> | xargs /usr/bin/discard<br />
</code></div>
</div>
<p>This approach efficiently processes a long list of held messages and gets your Mailman mailing list back in order</p>
]]></content:encoded>
					
					<wfw:commentRss>https://arunns.net/cleanup-mailman-held-messages/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
