<?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: Download POP3/IMAP Email Attachments with PHP</title>
	<atom:link href="http://www.nerdydork.com/download-pop3imap-email-attachments-with-php.html/feed" rel="self" type="application/rss+xml" />
	<link>http://www.nerdydork.com/download-pop3imap-email-attachments-with-php.html</link>
	<description>Dustin Davis reviews... the internet.</description>
	<lastBuildDate>Thu, 11 Mar 2010 02:42:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: chris@smsdam</title>
		<link>http://www.nerdydork.com/download-pop3imap-email-attachments-with-php.html/comment-page-1#comment-6333</link>
		<dc:creator>chris@smsdam</dc:creator>
		<pubDate>Mon, 14 Dec 2009 14:10:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=400#comment-6333</guid>
		<description>Great script and fix too. I already have incoming mail attachments neatly stored in a directory . Writing code to use them as the need arises.</description>
		<content:encoded><![CDATA[<p>Great script and fix too. I already have incoming mail attachments neatly stored in a directory . Writing code to use them as the need arises.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://www.nerdydork.com/download-pop3imap-email-attachments-with-php.html/comment-page-1#comment-6248</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Fri, 27 Nov 2009 13:43:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=400#comment-6248</guid>
		<description>I ready across the code also and am trying to run it but get these errors over and over as it reads email from my inbox.

Notice: Undefined property: stdClass::$parts in /usr/local/websites/test/mobile-reader/attachmentread.class.php on line 50

Notice: Undefined property: stdClass::$disposition in /usr/local/websites/test/mobile-reader/attachmentread.class.php on line 57</description>
		<content:encoded><![CDATA[<p>I ready across the code also and am trying to run it but get these errors over and over as it reads email from my inbox.</p>
<p>Notice: Undefined property: stdClass::$parts in /usr/local/websites/test/mobile-reader/attachmentread.class.php on line 50</p>
<p>Notice: Undefined property: stdClass::$disposition in /usr/local/websites/test/mobile-reader/attachmentread.class.php on line 57</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth Sym</title>
		<link>http://www.nerdydork.com/download-pop3imap-email-attachments-with-php.html/comment-page-1#comment-6187</link>
		<dc:creator>Seth Sym</dc:creator>
		<pubDate>Sat, 14 Nov 2009 21:37:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=400#comment-6187</guid>
		<description>This is exactly what I needed; my office sends files back and forth (inefficient i know) and this will save some time for sure.</description>
		<content:encoded><![CDATA[<p>This is exactly what I needed; my office sends files back and forth (inefficient i know) and this will save some time for sure.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: heppu</title>
		<link>http://www.nerdydork.com/download-pop3imap-email-attachments-with-php.html/comment-page-1#comment-6135</link>
		<dc:creator>heppu</dc:creator>
		<pubDate>Thu, 05 Nov 2009 21:00:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=400#comment-6135</guid>
		<description>@Henrique&#039;s great tip doesn&#039;t work for me. No image saved (folder ftp --&gt; 777). Any other solution? 

For my email this code mark&#039;s email as read, and delete work&#039;s fine, if delete_emails=&quot;true&quot;..</description>
		<content:encoded><![CDATA[<p>@Henrique&#8217;s great tip doesn&#8217;t work for me. No image saved (folder ftp &#8211;&gt; 777). Any other solution? </p>
<p>For my email this code mark&#8217;s email as read, and delete work&#8217;s fine, if delete_emails=&#8221;true&#8221;..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: P2M</title>
		<link>http://www.nerdydork.com/download-pop3imap-email-attachments-with-php.html/comment-page-1#comment-6064</link>
		<dc:creator>P2M</dc:creator>
		<pubDate>Sun, 25 Oct 2009 00:01:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=400#comment-6064</guid>
		<description>@Henrique

yess I have the same and make your change and it work fine now !!</description>
		<content:encoded><![CDATA[<p>@Henrique</p>
<p>yess I have the same and make your change and it work fine now !!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrique</title>
		<link>http://www.nerdydork.com/download-pop3imap-email-attachments-with-php.html/comment-page-1#comment-5902</link>
		<dc:creator>Henrique</dc:creator>
		<pubDate>Tue, 29 Sep 2009 19:15:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=400#comment-5902</guid>
		<description>Finally... After all this time, a little tweaks saved the day.

For some reason the $parts weren&#039;t being read correctly, saying all emails had 0 parts. I then removed FT_UID from the imap_fetchstructure line, leaving it like this:

$structure = imap_fetchstructure($mbox, $jk); 

but then $part-&gt;disposition wasn&#039;t reading &quot;attachment&quot; for attachments. I print_r the array and found out the attachments disposition were reading as &quot;inline&quot;. I have no idea of all of this means, but I changed the following line from:

if($part-&gt;disposition == &quot;ATTACHMENT&quot;) {

to

if($part-&gt;disposition == &quot;inline&quot;) {

and it&#039;s working perfectly now.

Anyway, if anyone is having the same problem I was, try changing those lines and you should be all set.</description>
		<content:encoded><![CDATA[<p>Finally&#8230; After all this time, a little tweaks saved the day.</p>
<p>For some reason the $parts weren&#8217;t being read correctly, saying all emails had 0 parts. I then removed FT_UID from the imap_fetchstructure line, leaving it like this:</p>
<p>$structure = imap_fetchstructure($mbox, $jk); </p>
<p>but then $part-&gt;disposition wasn&#8217;t reading &#8220;attachment&#8221; for attachments. I print_r the array and found out the attachments disposition were reading as &#8220;inline&#8221;. I have no idea of all of this means, but I changed the following line from:</p>
<p>if($part-&gt;disposition == &#8220;ATTACHMENT&#8221;) {</p>
<p>to</p>
<p>if($part-&gt;disposition == &#8220;inline&#8221;) {</p>
<p>and it&#8217;s working perfectly now.</p>
<p>Anyway, if anyone is having the same problem I was, try changing those lines and you should be all set.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Henrique</title>
		<link>http://www.nerdydork.com/download-pop3imap-email-attachments-with-php.html/comment-page-1#comment-5891</link>
		<dc:creator>Henrique</dc:creator>
		<pubDate>Mon, 28 Sep 2009 22:13:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=400#comment-5891</guid>
		<description>Kareem, did you ever figure out what your problem was? It&#039;s happening the same thing here.
First I thought the permissions to the directory weren&#039;t right, until I chmod a+rwx on it and it still won&#039;t work.
Any ideas?</description>
		<content:encoded><![CDATA[<p>Kareem, did you ever figure out what your problem was? It&#8217;s happening the same thing here.<br />
First I thought the permissions to the directory weren&#8217;t right, until I chmod a+rwx on it and it still won&#8217;t work.<br />
Any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://www.nerdydork.com/download-pop3imap-email-attachments-with-php.html/comment-page-1#comment-5398</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Wed, 08 Jul 2009 21:51:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=400#comment-5398</guid>
		<description>This could be very useful for anyone who gets sent a ton of attachments and needs to have them handy down the road.</description>
		<content:encoded><![CDATA[<p>This could be very useful for anyone who gets sent a ton of attachments and needs to have them handy down the road.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: larry</title>
		<link>http://www.nerdydork.com/download-pop3imap-email-attachments-with-php.html/comment-page-1#comment-5376</link>
		<dc:creator>larry</dc:creator>
		<pubDate>Mon, 06 Jul 2009 14:07:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=400#comment-5376</guid>
		<description>Any body! I use Kodak EasyShare software, burning CD/DVD without any problem for a long time. Now, when I try to do the same operatin I get message:&#039;IMAP12 is not installed on this machine&quot; and  cant do anything father. What is IMAP12 has to do with this????</description>
		<content:encoded><![CDATA[<p>Any body! I use Kodak EasyShare software, burning CD/DVD without any problem for a long time. Now, when I try to do the same operatin I get message:&#8217;IMAP12 is not installed on this machine&#8221; and  cant do anything father. What is IMAP12 has to do with this????</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kareem</title>
		<link>http://www.nerdydork.com/download-pop3imap-email-attachments-with-php.html/comment-page-1#comment-5191</link>
		<dc:creator>Kareem</dc:creator>
		<pubDate>Mon, 15 Jun 2009 22:16:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.nerdydork.com/?p=400#comment-5191</guid>
		<description>I&#039;ve been trying to get this to work, but all it does is delete the file from the gmail inbox.

Here&#039;s my code:

function getEmailFile($directory) {
	$attachment = new ReadAttachment;
	$attachment-&gt;getdata(&#039;{imap.gmail.com:993/imap/ssl/novalidate-cert}INBOX&#039;, &#039;address@gmail.com&#039;, &#039;password&#039;, &#039;xml/&#039;.$directory, &#039;false&#039;);
}

getEmailFile(&#039;visitors&#039;);

Any help would be greatly appreciated!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve been trying to get this to work, but all it does is delete the file from the gmail inbox.</p>
<p>Here&#8217;s my code:</p>
<p>function getEmailFile($directory) {<br />
	$attachment = new ReadAttachment;<br />
	$attachment-&gt;getdata(&#8216;{<a href="http://imap.gmail.com" title="http://imap.gmail.com" target="_blank">imap.gmail.com</a>:993/imap/ssl/novalidate-cert}INBOX&#8217;, &#8216;address@gmail.com&#8217;, &#8216;password&#8217;, &#8216;xml/&#8217;.$directory, &#8216;false&#8217;);<br />
}</p>
<p>getEmailFile(&#8216;visitors&#8217;);</p>
<p>Any help would be greatly appreciated!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
