<?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>Racker Hacker &#187; mutt</title>
	<atom:link href="http://rackerhacker.com/tag/mutt/feed/" rel="self" type="application/rss+xml" />
	<link>http://rackerhacker.com</link>
	<description>Words of wisdom from a server administrator</description>
	<lastBuildDate>Tue, 07 Feb 2012 14:07:41 +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>Sending binary e-mail attachments from the command line with mutt</title>
		<link>http://rackerhacker.com/2011/01/10/sending-binary-e-mail-attachments-from-the-command-line-with-mutt/</link>
		<comments>http://rackerhacker.com/2011/01/10/sending-binary-e-mail-attachments-from-the-command-line-with-mutt/#comments</comments>
		<pubDate>Tue, 11 Jan 2011 01:10:58 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[mutt]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=2098</guid>
		<description><![CDATA[E-mailing a binary e-mail attachment from a Linux server has always been difficult for me because I never found a reliable method to get it done. I've used uuencode to pipe data into mail on various systems but the attachment is often unreadable by many e-mail clients. Someone finally showed me a simple, fool-proof method [...]<p><a href="http://rackerhacker.com/2011/01/10/sending-binary-e-mail-attachments-from-the-command-line-with-mutt/">Sending binary e-mail attachments from the command line with mutt</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>E-mailing a binary e-mail attachment from a Linux server has always been difficult for me because I never found a reliable method to get it done.  I've used <code>uuencode</code> to pipe data into <code>mail</code> on various systems but the attachment is often unreadable by many e-mail clients.</p>
<p>Someone finally showed me a simple, fool-proof method to send binary attachments reliably from various Linux systems:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">echo &quot;Cheeseburger&quot; | mutt -s &quot;OHAI!&quot; -a lolcat.jpg -- recipient@domain.com</pre></div></div>

<p>If you e-mail doesn't arrive, remember to consider the size of the file that you're sending and the restrictions of the receiver's e-mail server.  Keep in mind that encoding the binary attachment will cause the size of the e-mail to creep up a bit more (about 1.37x plus a little extra with <a href="http://en.wikipedia.org/wiki/Base64#MIME">Base64</a>).</p>
<p><a href="http://rackerhacker.com/2011/01/10/sending-binary-e-mail-attachments-from-the-command-line-with-mutt/">Sending binary e-mail attachments from the command line with mutt</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2011/01/10/sending-binary-e-mail-attachments-from-the-command-line-with-mutt/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Deleting all e-mail messages in your inbox with mutt</title>
		<link>http://rackerhacker.com/2009/06/19/deleting-all-e-mail-messages-in-your-inbox-with-mutt/</link>
		<comments>http://rackerhacker.com/2009/06/19/deleting-all-e-mail-messages-in-your-inbox-with-mutt/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 17:37:58 +0000</pubDate>
		<dc:creator>Major Hayden</dc:creator>
				<category><![CDATA[Blog Posts]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[mutt]]></category>

		<guid isPermaLink="false">http://rackerhacker.com/?p=934</guid>
		<description><![CDATA[Occasionally, I'll end up with a mailbox full of random data, alerts, or other useless things. If you have SSH access to the server, you can always clear out your mail spool, but if you connect to an IMAP server, you can use mutt to do the same thing. First, use mutt to connect to [...]<p><a href="http://rackerhacker.com/2009/06/19/deleting-all-e-mail-messages-in-your-inbox-with-mutt/">Deleting all e-mail messages in your inbox with mutt</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></description>
			<content:encoded><![CDATA[<p>Occasionally, I'll end up with a mailbox full of random data, alerts, or other useless things.  If you have SSH access to the server, you can always clear out your mail spool, but if you connect to an IMAP server, you can use mutt to do the same thing.</p>
<p>First, use mutt to connect to your server remotely (via IMAP over SSL in this example):</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">mutt -f imaps://mail.yourdomain.com/</pre></div></div>

<p>Once you've connected and logged in, press <strong>SHIFT-D</strong> (uppercase d).  The status bar of mutt should show:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">Delete messages matching:</pre></div></div>

<p>Type in <code>~s .*</code> so that the line looks like:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">Delete messages matching: ~s .*</pre></div></div>

<p>When you press enter, mutt will put a <strong>D</strong> next to all of the messages, which marks them for deletion.  Press <code>q</code> to quit, and then <code>y</code> to confirm the deletion.  After a brief moment, all of those messages will be deleted and mutt will exit.</p>
<p><b>Update:</b> If you review Dmitri's comment below, there's an even faster way to remove all of the messages in a mailbox with mutt.  Just hold shift while pressing D, ~ (tilde), and A to select everything:</p>

<div class="wp_syntax"><div class="code"><pre class="html" style="font-family:monospace;">D~A</pre></div></div>

<p><a href="http://rackerhacker.com/2009/06/19/deleting-all-e-mail-messages-in-your-inbox-with-mutt/">Deleting all e-mail messages in your inbox with mutt</a> is a post from: Major Hayden's <a href="http://rackerhacker.com">Racker Hacker</a> blog. 
<p>Thanks for following the blog via the RSS feed. Please don't copy my posts or quote portions of them without attribution.</p></p>
]]></content:encoded>
			<wfw:commentRss>http://rackerhacker.com/2009/06/19/deleting-all-e-mail-messages-in-your-inbox-with-mutt/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

