<?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>blog.lundscape.com &#187; PDF</title>
	<atom:link href="http://blog.lundscape.com/tag/pdf/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lundscape.com</link>
	<description>The Linux Journey</description>
	<lastBuildDate>Thu, 15 Apr 2010 20:06:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Extract Email Attachments With Procmail and Munpack</title>
		<link>http://blog.lundscape.com/2009/10/extract-email-attachments-with-procmail-and-munpack/</link>
		<comments>http://blog.lundscape.com/2009/10/extract-email-attachments-with-procmail-and-munpack/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 16:37:33 +0000</pubDate>
		<dc:creator>Zachary Lund</dc:creator>
				<category><![CDATA[Procmail]]></category>
		<category><![CDATA[Attachment]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Marquette University]]></category>
		<category><![CDATA[Munpack]]></category>
		<category><![CDATA[PDF]]></category>
		<category><![CDATA[PrintWise]]></category>
		<category><![CDATA[Word]]></category>

		<guid isPermaLink="false">http://blog.lundscape.com/?p=234</guid>
		<description><![CDATA[I regularly use the Marquette University PrintWise Canon copiers to scan paper documents into PDF files. These files are delivered to me via email where I manually save each PDF attachment, rename it, and move it to the appropriate directory. Using Procmail and Munpack, I was able to eliminate some of the tedium of this [...]]]></description>
			<content:encoded><![CDATA[<p>I regularly use the Marquette University PrintWise Canon copiers to scan paper documents into PDF files. These files are delivered to me via email where I manually save each PDF attachment, rename it, and move it to the appropriate directory. Using Procmail and Munpack, I was able to eliminate some of the tedium of this problem.</p>
<p>I inserted the following block of code into my .procmailrc file. It looks for emails that were sent from me and to me by a Canon copier. When it finds one, it copes the email and pipes it to Munpack which extracts the attachments into my attachments directory.</p>
<p><code>ATTACH=`echo $HOME/attachments`<br />
:0 c<br />
* ^To:.*me@email.com<br />
* ^From:.*me@email.com<br />
* ^X-Mailer: Canon imageRUNNER<br />
| munpack -q -C $ATTACH<br />
</code></p>
<p>After the attachment has been extracted, I can rename it and move it to the appropriate directory, and I still receive the email in my inbox so I know I have attachments to deal with.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lundscape.com/2009/10/extract-email-attachments-with-procmail-and-munpack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
