<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Extract Email Attachments With Procmail and Munpack</title>
	<atom:link href="http://blog.lundscape.com/2009/10/extract-email-attachments-with-procmail-and-munpack/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lundscape.com/2009/10/extract-email-attachments-with-procmail-and-munpack/</link>
	<description>The Linux Journey</description>
	<lastBuildDate>Sat, 03 Dec 2011 18:39:33 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Txoof</title>
		<link>http://blog.lundscape.com/2009/10/extract-email-attachments-with-procmail-and-munpack/comment-page-1/#comment-32939</link>
		<dc:creator>Txoof</dc:creator>
		<pubDate>Sat, 03 Dec 2011 18:39:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lundscape.com/?p=234#comment-32939</guid>
		<description>This is almost exactly what I need!  I just need something that will *remove* the attachment.
Do you know if there is a sane way to remove attachments from incoming mail?  I want to remove all attachments from mail I pop from Gmail.  I&#039;m only interested in backing up the text, google can house all the pictures of babies that family members send around.  
I&#039;ve looked at MimeDefang, but it&#039;s a bit of a bulldozer where as I only need a garden spade.  That, and I don&#039;t want to figure out how to run a sendmail backend just to receive email...</description>
		<content:encoded><![CDATA[<p>This is almost exactly what I need!  I just need something that will *remove* the attachment.<br />
Do you know if there is a sane way to remove attachments from incoming mail?  I want to remove all attachments from mail I pop from Gmail.  I&#8217;m only interested in backing up the text, google can house all the pictures of babies that family members send around.<br />
I&#8217;ve looked at MimeDefang, but it&#8217;s a bit of a bulldozer where as I only need a garden spade.  That, and I don&#8217;t want to figure out how to run a sendmail backend just to receive email&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zachary Lund</title>
		<link>http://blog.lundscape.com/2009/10/extract-email-attachments-with-procmail-and-munpack/comment-page-1/#comment-17401</link>
		<dc:creator>Zachary Lund</dc:creator>
		<pubDate>Sat, 02 Apr 2011 16:12:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lundscape.com/?p=234#comment-17401</guid>
		<description>@Krut,

Do you mean you had to create ~/$HOME/attachments or you had to create ~/attachments? You can alter the directory by changing the $ATTACH variable.

Unfortunately, it does not appear that munpack will give you the file names. However, if you either always unpack the files in a new directory or clear out the attachments directory when you are done, you could simply iterate through all files in the directory. You could also try piping the email to a script that then calls munpack and performs other actions.

Let me know how the script works out. I&#039;d be curious to see the finished product. :)</description>
		<content:encoded><![CDATA[<p>@Krut,</p>
<p>Do you mean you had to create ~/$HOME/attachments or you had to create ~/attachments? You can alter the directory by changing the $ATTACH variable.</p>
<p>Unfortunately, it does not appear that munpack will give you the file names. However, if you either always unpack the files in a new directory or clear out the attachments directory when you are done, you could simply iterate through all files in the directory. You could also try piping the email to a script that then calls munpack and performs other actions.</p>
<p>Let me know how the script works out. I&#8217;d be curious to see the finished product. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Krut</title>
		<link>http://blog.lundscape.com/2009/10/extract-email-attachments-with-procmail-and-munpack/comment-page-1/#comment-17260</link>
		<dc:creator>Krut</dc:creator>
		<pubDate>Thu, 31 Mar 2011 23:06:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lundscape.com/?p=234#comment-17260</guid>
		<description>Thanks Zachary
It worked. For some reason the I had to create the directory attachment in $HOME.

Beside that I was wondering is there anyway you can get the name of the attachment file in the same script as I am planning to use the file in another script. ( I.e variable like $attachment_name or  something).

Thanks again
Krut.</description>
		<content:encoded><![CDATA[<p>Thanks Zachary<br />
It worked. For some reason the I had to create the directory attachment in $HOME.</p>
<p>Beside that I was wondering is there anyway you can get the name of the attachment file in the same script as I am planning to use the file in another script. ( I.e variable like $attachment_name or  something).</p>
<p>Thanks again<br />
Krut.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Extract Email Attachments With Procmail and Munpack « blog.lundscape.com &#124; Markuksen www-sielunmaisema</title>
		<link>http://blog.lundscape.com/2009/10/extract-email-attachments-with-procmail-and-munpack/comment-page-1/#comment-10743</link>
		<dc:creator>Extract Email Attachments With Procmail and Munpack « blog.lundscape.com &#124; Markuksen www-sielunmaisema</dc:creator>
		<pubDate>Tue, 14 Dec 2010 11:16:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.lundscape.com/?p=234#comment-10743</guid>
		<description>[...] Extract Email Attachments With Procmail and Munpack « blog.lundscape.com. [...]</description>
		<content:encoded><![CDATA[<p>[...] Extract Email Attachments With Procmail and Munpack « blog.lundscape.com. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

