<?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>Dwarfsoft [GPA] &#187; Addon</title>
	<atom:link href="http://www.dwarfsoft.com/blog/tag/addon/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dwarfsoft.com/blog</link>
	<description>Great Programming Artistry</description>
	<lastBuildDate>Tue, 22 Jun 2010 21:01:59 +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>More GTD-PHP Work</title>
		<link>http://www.dwarfsoft.com/blog/2009/08/20/more-gtd-php-work/</link>
		<comments>http://www.dwarfsoft.com/blog/2009/08/20/more-gtd-php-work/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 05:53:44 +0000</pubDate>
		<dc:creator>dwarfsoft</dc:creator>
				<category><![CDATA[Authoring]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Tweet]]></category>
		<category><![CDATA[Addon]]></category>
		<category><![CDATA[GTD]]></category>
		<category><![CDATA[Initiative]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Theory]]></category>

		<guid isPermaLink="false">http://www.dwarfsoft.com/blog/?p=282</guid>
		<description><![CDATA[I have updated my GTD-PHP Email Import Addon so that it now integrates with the current Subversion revision of the code. There is one bug left in it, in that it will not check that there is a mail server set before it tries to connect. I find that this error occurs the first time [...]]]></description>
			<content:encoded><![CDATA[<p>I have updated my GTD-PHP Email Import Addon so that it now integrates with the current Subversion revision of the code. There is one bug left in it, in that it will not check that there is a mail server set before it tries to connect. I find that this error occurs the first time the session is established with the server, and from then on it works fine. By performing an error check against $server = &#8220;&#8221; I should be able to remove that bug as well. </p>
<p>The updated <a href="http://www.gtd-php.com/Developers/EmailImport">EmailImport</a> Addon is now available for download from the <a href="https://www.hosted-projects.com/trac/toae/gtdphp/ticket/569">GTD-PHP Trac wiki</A>.</p>
<p><span id="more-282"></span></p>
<p>I have since moved on to the next most important feature on my personal list of Enhancements (yes, before I fix my known bug in the previous one). I want to be able to have a scheduled email sent every morning with a report on what Actions are overdue, what actions are due today and a rundown on the coming actions in the next week. Additionally this report should contain information on Project deadlines of note (overdue, due and coming). Another report I want is to be able to have the weekly review report emailed weekly to myself (at my work and home email addresses).</p>
<p>To achieve this I have been looking in to using php scripts to create cron jobs on the host system (or schtasks jobs if on a WAMP server for example). I have most of the information required to achieve this now. Once I have implemented a scheduled tasks manager from within GTD-PHP I will then build a custom report builder, which will then be enhanced by the emailer. In all, three addons become interlocked for completing this next feature.</p>
<p>If I didn&#8217;t have GTD-PHP (and therefore wasn&#8217;t following the GTD methodology) to manage all my projects I probably would not be in the position of even being capable of extending any project (I am busier now than ever, but I have more control over my time than ever before). By completing the Addons in my list I will have so much better control over my time and be in a perfect position to achieve some Zen in my life <img src='http://www.dwarfsoft.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Just so you get some perspective, when I first set up GTD-PHP I added a lot of actions, and immediately closed them. Those statistics had me max at about 30 items in a week. Currently this week I have closed 75 items, and the week isn&#8217;t over. Most of these items have been self imposed actions for me to develop, research, repair, investigate, or whatever. I have given myself more work than at the start, and I have more time off now to blog about it (yet another action) than I have ever had previously.</p>
<p>I thoroughly encourage everybody to look into David Allens Getting Things Done. Worked wonders for me <img src='http://www.dwarfsoft.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers, Chris.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwarfsoft.com/blog/2009/08/20/more-gtd-php-work/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updated GTD-PHP POP3 Inbox Import</title>
		<link>http://www.dwarfsoft.com/blog/2009/08/04/updated-gtd-php-pop3-inbox-import/</link>
		<comments>http://www.dwarfsoft.com/blog/2009/08/04/updated-gtd-php-pop3-inbox-import/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 01:39:09 +0000</pubDate>
		<dc:creator>dwarfsoft</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Addon]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Groupwise]]></category>
		<category><![CDATA[GTD]]></category>
		<category><![CDATA[Home]]></category>
		<category><![CDATA[Import]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[POP3]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[Scripting]]></category>

		<guid isPermaLink="false">http://www.dwarfsoft.com/blog/2009/08/04/updated-gtd-php-pop3-inbox-import/</guid>
		<description><![CDATA[So I have been using the new script this morning, and testing adding new actions from the GroupWise account at work. Here is where I encountered some issues.
GroupWise decides it wants to MIME Encode the email, which brings about my first problem. I need to account for multiple MIME Parts. After resolving this my next [...]]]></description>
			<content:encoded><![CDATA[<p>So I have been using the new script this morning, and testing adding new actions from the GroupWise account at work. Here is where I encountered some issues.</p>
<p>GroupWise decides it wants to MIME Encode the email, which brings about my first problem. I need to account for multiple MIME Parts. After resolving this my next issue is that the corporate email gateway decides to append a massive disclaimer at the bottom of the email, bloating my item by at least 1000%. So I implemented the ability to cut out disclaimers based on a stripos call. I can have a list of different filters here and it will cut them all out.</p>
<p>After fixing this up and resolving the functional issues I <a href="https://www.hosted-projects.com/trac/toae/gtdphp/ticket/569">logged this addon as a ticket</A> in the <a href="https://www.hosted-projects.com/trac/toae/gtdphp/">GTD-PHP Trac</a> system.</p>
<p><span id="more-279"></span></p>
<p>I have a few further updates to make, including having bulk uploads, custom tags and mail filters.</p>
<p>Cheers, Chris</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwarfsoft.com/blog/2009/08/04/updated-gtd-php-pop3-inbox-import/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GTD-PHP Import from POP3 Mail</title>
		<link>http://www.dwarfsoft.com/blog/2009/08/04/gtd-php-import-from-pop3-mail/</link>
		<comments>http://www.dwarfsoft.com/blog/2009/08/04/gtd-php-import-from-pop3-mail/#comments</comments>
		<pubDate>Mon, 03 Aug 2009 21:00:28 +0000</pubDate>
		<dc:creator>dwarfsoft</dc:creator>
				<category><![CDATA[Home]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Tweet]]></category>
		<category><![CDATA[Addon]]></category>
		<category><![CDATA[GTD]]></category>
		<category><![CDATA[Import]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://www.dwarfsoft.com/blog/2009/08/04/gtd-php-import-from-pop3-mail/</guid>
		<description><![CDATA[I have been attempting to get a fully working system set up for David Allens Getting Things Done. To this end I have set up an install of GTD-PHP. 
Being the kind of person who likes to adapt, change, and implement better solutions, particularly for myself, I created a list of features I would like [...]]]></description>
			<content:encoded><![CDATA[<p>I have been attempting to get a fully working system set up for <a href="http://www.davidco.com/">David Allens</a> Getting Things Done. To this end I have set up an install of <a href="http://www.gtd-php.com/">GTD-PHP</a>. </p>
<p>Being the kind of person who likes to adapt, change, and implement better solutions, particularly for myself, I created a list of features I would like to see in my GTD-PHP installation. One of the first problems I had with the existing system was that it does not support importing Inbox items from a real mail Inbox.</p>
<p>I did some research and came across an <a href="https://www.hosted-projects.com/trac/toae/gtdphp/attachment/ticket/558/mail.php.src">existing mail importer</a>, however this required directly piping mail from SMTP into the php script, which I could not do on my host (or would prefer not to do).</p>
<p><span id="more-274"></span></p>
<p>I decided to build my own POP3 Importer of Inbox items and decided to learn PHP and <a href="http://uk2.php.net/imap_open">imap_open</a>. I built it as an addon to GTD-PHP that could be called to do an import, however I am still going to extend it so that in the GTD-PHP header additional headers can be called (ones that identify if new items have been added to an Inbox so I can get feedback of when somebody mails into that account).</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">//Script to insert e-mails into GTD-PHP inbox.</span>
<span style="color: #666666; font-style: italic;">//These are loaded from a pop3 account</span>
<span style="color: #666666; font-style: italic;">//The account info and other options are configured in the config.php file</span>
<span style="color: #666666; font-style: italic;">//$config['addons']['pop3inbox']=array(</span>
<span style="color: #666666; font-style: italic;">//        &quot;link&quot;=&gt;&quot;addons/pop3inbox/import.php&quot;,</span>
<span style="color: #666666; font-style: italic;">//        'title'=&gt;&quot;Import POP3 Mail&quot;, 'label'=&gt;&quot;Import Inbox&quot;,</span>
<span style="color: #666666; font-style: italic;">//        'where'=&gt;'item.php?type=i','when'=&gt;'after',</span>
<span style="color: #666666; font-style: italic;">//        'options'=&gt;array(&quot;user&quot;   =&gt; 'gtduser',</span>
<span style="color: #666666; font-style: italic;">//                         &quot;pass&quot;   =&gt; 'gtdpass',</span>
<span style="color: #666666; font-style: italic;">//                         &quot;server&quot; =&gt; 'mail.server.com',</span>
<span style="color: #666666; font-style: italic;">//                         &quot;port&quot;   =&gt; '995',</span>
<span style="color: #666666; font-style: italic;">//                         &quot;type&quot;   =&gt; '/pop3/ssl/novalidate-cert',</span>
<span style="color: #666666; font-style: italic;">//                         &quot;delete&quot; =&gt; true)</span>
<span style="color: #666666; font-style: italic;">//                         );</span>
<span style="color: #666666; font-style: italic;">//Subject becomes title</span>
<span style="color: #666666; font-style: italic;">//From &amp; Body becomes description</span>
<span style="color: #000088;">$title</span><span style="color: #339933;">=</span><span style="color: #0000ff;">'Import POP3 Inbox'</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">include_once</span> <span style="color: #0000ff;">'header.php'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$msoptions</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$addon</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'options'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #990000;">mysql_connect</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'host'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span><span style="color: #000088;">$config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #990000;">mysql_select_db</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'db'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$imap</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imap_open</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;{&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$msoptions</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'server'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;:&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$msoptions</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'port'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #000088;">$msoptions</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'type'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;}INBOX&quot;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$msoptions</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'user'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">,</span> <span style="color: #000088;">$msoptions</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'pass'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$imap</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
   <span style="color: #990000;">print_r</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">imap_errors</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span> <span style="color: #b1b100;">else</span> <span style="color: #009900;">&#123;</span>
  <span style="color: #000088;">$num_msg</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imap_num_msg</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$imap</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">include_once</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'gtdfuncs.php'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;importing &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$num_msg</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot; messages&lt;br&gt;&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;div class='success'&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">for</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$i</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$num_msg</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span> <span style="color: #339933;">&gt;</span> <span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #000088;">$i</span><span style="color: #339933;">--</span><span style="color: #009900;">&#41;</span>
  <span style="color: #009900;">&#123;</span>
    <span style="color: #666666; font-style: italic;">// empty vars</span>
    <span style="color: #000088;">$from</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$subject</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$headers</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;&quot;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$header</span> <span style="color: #339933;">=</span> <span style="color: #990000;">imap_headerinfo</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$imap</span><span style="color: #339933;">,</span> <span style="color: #000088;">$i</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">80</span><span style="color: #339933;">,</span> <span style="color: #cc66cc;">80</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$from</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$header</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fromaddress</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$subject</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$header</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">fetchsubject</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$date</span>    <span style="color: #339933;">=</span> <span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'YmdHis'</span><span style="color: #339933;">,</span> <span style="color: #000088;">$header</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">udate</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #000088;">$message</span><span style="color: #339933;">=</span><span style="color: #990000;">imap_body</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$imap</span><span style="color: #339933;">,</span> <span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #000088;">$message</span><span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;From: &quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$from</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;<span style="color: #000099; font-weight: bold;">\n</span><span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$message</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;INSERT INTO `&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'prefix'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;items` ( `itemId` , `title` , `description` , `desiredOutcome` )VALUES (NULL , '<span style="color: #006699; font-weight: bold;">$subject</span>', '<span style="color: #006699; font-weight: bold;">$message</span>', NULL);&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;INSERT INTO `&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'prefix'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;itemstatus` (`itemId`, `dateCreated`, `lastModified`, `dateCompleted`) VALUES (NULL, '&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">date</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">&quot;datemask&quot;</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;', NOW(), NULL);&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #990000;">mysql_query</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">&quot;INSERT INTO `&quot;</span><span style="color: #339933;">.</span><span style="color: #000088;">$config</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'prefix'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">.</span><span style="color: #0000ff;">&quot;itemattributes` ( `itemId` , `type` , `isSomeday` , `categoryId` , `contextId` , `timeframeId` , `deadline` , `repeat` , `suppress` , `suppressUntil` )VALUES (NULL , 'i', 'n', '0', '0', '0', NULL , '0', 'n', NULL);&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;Imported '&quot;</span><span style="color: #339933;">.</span><span style="color: #990000;">stripslashes</span><span style="color: #009900;">&#40;</span>escapeChars<span style="color: #009900;">&#40;</span><span style="color: #000088;">$subject</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><span style="color: #0000ff;">&quot;' into Inbox&lt;br /&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span><span style="color: #339933;">;</span>
    <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$msoptions</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'delete'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
      <span style="color: #990000;">imap_delete</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$imap</span><span style="color: #339933;">,</span> <span style="color: #000088;">$i</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #009900;">&#125;</span>
  <span style="color: #b1b100;">echo</span> <span style="color: #0000ff;">&quot;&lt;/div&gt;&quot;</span><span style="color: #339933;">;</span>
  <span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$msoptions</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'delete'</span><span style="color: #009900;">&#93;</span><span style="color: #009900;">&#41;</span>
    <span style="color: #990000;">imap_expunge</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$imap</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
  <span style="color: #990000;">imap_close</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$imap</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
<span style="color: #b1b100;">include_once</span> <span style="color: #0000ff;">'footer.php'</span><span style="color: #339933;">;</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

<p>Works pretty well at this point. Though I am having problems getting mail into that POP3 account. Will have to work further on that today <img src='http://www.dwarfsoft.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers, Chris.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dwarfsoft.com/blog/2009/08/04/gtd-php-import-from-pop3-mail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
