<?xml version="1.0" encoding="UTF-8"?>
<essay xml:lang="en" version="5.0" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:gal="http://norman.walsh.name/rdf/gallery#" xmlns:foaf="http://xmlns.com/foaf/0.1/">
<info>
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
<title>IM status and email</title><biblioid class="uri">http://norman.walsh.name/2009/05/09/imEmail</biblioid>
<volumenum>12</volumenum>
<issuenum>16</issuenum>
<pubdate>2009-05-09T08:35:13-04:00</pubdate>
<author>
      <personname>
<firstname>Norman</firstname>
	<surname>Walsh</surname>
</personname>
    </author>
<copyright>
      <year>2009</year>
      <holder>Norman Walsh</holder>
    </copyright>
<abstract>
<para>At the intersection of chat status and email, more useful
functionality for both.</para>
</abstract>
<dc:subject rdf:resource="http://norman.walsh.name/knows/taxonomy#Email"/>
<dc:subject rdf:resource="http://norman.walsh.name/knows/taxonomy#IM"/>
</info>

<para xml:id="p1">For years, my strategy for email has been to download it
using <wikipedia page="Internet_Message_Access_Protocol">IMAP</wikipedia>
or <wikipedia page="Post_Office_Protocol">POP</wikipedia>, as appropriate,
with <wikipedia>Fetchmail</wikipedia>, 
run it through <wikipedia>procmail</wikipedia>, and deliver
it locally. <wikipedia>Gnus</wikipedia> then picks it up from the local
spool and does the right thing with it.
Since I never interact with the IMAP folders in any other way, I
delete mail from the server when I download it. Maybe this isn't strictly
necessary, but it's what I do.</para>

<para xml:id="p2">The download script runs every five minutes, displaying what it
collected via <wikipedia page="Growl_(software)">Growl</wikipedia>.
This all works like a charm.</para>

<para xml:id="p3">Since I got my <wikipedia>iPhone</wikipedia>, it's also possible
for me to look at my inbox on my phone. So, if I step away from my desk
for something, it's still possible for me to check my mail.</para>

<para xml:id="p4">Except, every five minutes my laptop grabs the mail and so there's
nothing there for the iPhone to see.</para>

<para xml:id="p5">Something else that runs on my laptop is <wikipedia>Adium</wikipedia>.
Now, I've never been very good about setting my status in Adium. I tend
to just leave it “available” all the time. The trouble with setting it to
“Away” is that I never remember to reset it when I return.</para>

<para xml:id="p6">Then this morning I had a thought…if my “getmail” script was
sensitive to my chat status then I could check mail on my phone when I
was away <emphasis>and</emphasis> when I returned, I'd be reminded to
reset my status.</para>

<para xml:id="p7">Ten minutes of fiddling with <wikipedia>AppleScript</wikipedia>
to read my status, three or four lines of
<wikipedia>Perl</wikipedia>, and it works like an
<emphasis>even better</emphasis> charm.</para>

<para xml:id="p8">If my chat status is “Available”, then everything works just like
it always has.
Otherwise, it doesn't collect mail but sends the Growl notice
“Skipping mail, not available for chat”.</para>

<para xml:id="p9">So, if I set my status appropriately before I step away, then my
friends and colleagues know I'm away and I can check my messages on my
phone. If I forget to reset my status when I return, my mail checking
script will remind me.</para>

<para xml:id="p10">Sometimes it's the little things…</para>

</essay>

