<?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>Hotchkiss Consulting &#187; php</title>
	<atom:link href="http://hotchkissconsulting.net/tag/php/feed/" rel="self" type="application/rss+xml" />
	<link>http://hotchkissconsulting.net</link>
	<description>Just another WordPress site</description>
	<lastBuildDate>Thu, 12 Apr 2012 21:30:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Building an eMail interface for Remember the Milk using PHP</title>
		<link>http://hotchkissconsulting.net/email-interface-remember-the-milk/</link>
		<comments>http://hotchkissconsulting.net/email-interface-remember-the-milk/#comments</comments>
		<pubDate>Fri, 06 Mar 2009 20:32:10 +0000</pubDate>
		<dc:creator>Sam Hotchkiss</dc:creator>
				<category><![CDATA[Consulting]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[Technologies]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[peek]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[remember the milk]]></category>
		<category><![CDATA[rtm]]></category>

		<guid isPermaLink="false">http://www.hotchkissconsulting.net/?p=89</guid>
		<description><![CDATA[UPDATE: Scripts are available here: http://hotchkissconsulting.net/177/remember-the-milk-email-scripts/ So, in accordance with my plan to switch client communication from phone to email, I have decided that, instead of a Cell Phone, I will carry a Peek with me.  While it has been a rocky road so far, I trust that the people at Peek have some good [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATE: Scripts are available here: <a href="http://hotchkissconsulting.net/177/remember-the-milk-email-scripts/">http://hotchkissconsulting.net/177/remember-the-milk-email-scripts/</a></strong></p>
<p><img class="alignleft size-full wp-image-112" title="rtm" src="http://hotchkissconsulting.net/wp-content/uploads/2009/04/rtm1.jpg" alt="rtm" width="263" height="224" />So, in accordance with my plan to switch client communication from phone to email, I have decided that, instead of a Cell Phone, I will carry a <a href="http://getpeek.com/" target="_blank">Peek </a>with me.  While it has been a rocky road so far, I trust that the people at Peek have some good updates coming down the pipeline, so I&#8217;m going to stick it out for a couple months and see how I like it.</p>
<p>The thing about the Peek is that it&#8217;s eMail only.  And I really do mean only.  No calculator, no games, no web browser, and no calendar.  For me, that just won&#8217;t do&#8211; I am an avid fan of <a href="http://rememberthemilk.com/">Remember the Milk</a>.  I keep it in my OS X dashboard and on my desktop email screen (I use GFYD, Google For Your Domain).  Having my RTM to go is a must.</p>
<p>Currently, RTM offers a couple email-based options.  You can email in new tasks, you can receive a list of your tasks for the day every morning via email, and you can receive an email reminder before a task is due.  This is a good start, but there are some problems:</p>
<p>1) With the daily schedule emails, you can only see what&#8217;s going on that day, you can&#8217;t see your entire schedule.  This information is crucial for setting appointments.</p>
<p>2) Reminder emails don&#8217;t have the task name in the subject line, meaning you have to open the email to see what you&#8217;re supposed to do.</p>
<p>3) You can&#8217;t do anything with the tasks&#8211; no marking them completed or postponing, you have to do this from the computer.</p>
<p>So, I wrote my own email interface, and will go over it and include my source files so you, too, can build your own (if you&#8217;ve got some <a href="http://php.net/">PHP </a>know-how).  If there&#8217;s enough interest, I will build a standalone, hosted solution for everyone of every skill level.<span id="more-89"></span></p>
<p>Now, you&#8217;ll note that I didn&#8217;t mention any problems with the task submission, that&#8217;s because it works pretty well already&#8230; the only issue I ran into there is that the Peek gives an alert every time you try to submit a new task because your RTM task submission email address contains a &#8220;+&#8221; sign.  So I simply added an email address to one of my domains that forwards to my RTM address.  Problem solved.</p>
<p>Issues with my RTM email interface:</p>
<p>1) I use the time estimate field to store my flag as to whether or not a notification has been sent.  This isn&#8217;t a field that I, personally, use.</p>
<p>2) I have built this to use only one list, my inbox.  If you want to use more lists, go for it, this script should give you a good starting point.</p>
<p>3) Even with my source code, this is a pretty technical process to get this up and running on your server.  I&#8217;m providing this to help those of you who have a basic understanding of PHP and REST/JSON data structure save a little bit of time.  If there is sufficient interest, I will consider building a service to do this for you&#8211; if you are interested, please post a comment letting me know.</p>
<p>4) These instructions assume that you already have an <a href="http://www.rememberthemilk.com/services/api/keys.rtm">API Key and Shared Secret</a> and a frob and token with read/write access to your user account.  If there are a lot of questions about this, I can post a separate how-to.</p>
<p>You are welcome to use this information for personal projects and distribute it with proper accreditation.</p>
<p>This interface uses 3 scripts, I will go through each in a separate blog post:</p>
<p><strong>1) Schedule </strong></p>
<p>This script sends me my full schedule at 7am, noon, and 5pm (It is triggered by crontab).   Here&#8217;s what one of those emails might look like:</p>
<blockquote>
<pre>Past Due:
-------------------------
Wed, Mar 4 2:00pm - call leanne smith re: PSD files
Thu, Mar 5 6:00pm - Send Back Candles

Upcoming:
-------------------------
Fri, Mar 6 10:00am - Change netflix plan
Fri, Mar 6 10:00am - Pay Care Credit Bill
Fri, Mar 6 10:00am - Pay Sallie Mae
Fri, Mar 6 12:00pm - call kennebec re contract
Sat, Mar 7 10:00am - Haircut!
Sat, Mar 7 11:00am - Go see an unlikely weapon at noon
Wed, Mar 11 8:30am - Dog Grooming @ Happy Paws
Wed, Mar 11 4:00pm - Meet with B. Peterson @ 430
Thu, Mar 12 5:15pm - Take out the Trash

Future:
-------------------------
Wed, Mar 18 3:45pm - Meeting w/ J. Doe at 4:30
Fri, Mar 20 8:15am - Dentist Appt
Sat, Jun 6 1:00am - Call Barbara to set up meeting on the 10th

     March 2009
Su Mo Tu We Th Fr Sa
 1  2  3  4  5  6  7
 8  9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30 31

     April 2009
Su Mo Tu We Th Fr Sa
          1  2  3  4
 5  6  7  8  9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30

      May 2009
Su Mo Tu We Th Fr Sa
                1  2
 3  4  5  6  7  8  9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
31

     June 2009
Su Mo Tu We Th Fr Sa
    1  2  3  4  5  6
 7  8  9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30</pre>
</blockquote>
<p>You can see, also, that at the emails I&#8217;ve tacked on the next 4 months worth of calendars so I can see what&#8217;s coming up!</p>
<p><strong>2) </strong><strong>Reminders</strong></p>
<p>To replace the reminder emails, I have a script that runs every 5 minutes to check to see if I have any tasks coming up within the next 30 minutes.  It then generates an email in which the subject is the name of my task followed by the Task ID, Task Series ID, and List ID (all of which are period delimitted).  This allows my next script to work its magic as well as putting my task info right there in the subject line so I can see what&#8217;s going on.</p>
<p><strong>3) Modifications</strong></p>
<p>This script checks a secret gmail account every 5 minutes, reads my messages and processes them based on the Process Code I send in.  The process code is the first letter in an email&#8211; if it&#8217;s &#8220;C&#8221; then this script tells RTM that the task is Completed.  If it&#8217;s &#8220;P&#8221;, the script tells RTM that the task is Postponed.  It figures out what the task is by parsing the numbers at the end of the subject line.</p>
<p>So&#8230; that&#8217;s what we&#8217;ve got!  Scripts are on their way and should be up today, please let me know what you think, and feel free to leave any questions in the comments field below.</p>
]]></content:encoded>
			<wfw:commentRss>http://hotchkissconsulting.net/email-interface-remember-the-milk/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

