inbox zero status: ZERO

After declaring inbox bankruptcy, changing the way I collect and manage my email, and tweeting a few times about my attempt to embrace the zen of Inbox Zero, I decided to automate the process, removing any potential editorialising between email client and reporting of the project status. ;-) I’ve set it up to post at 22:00 every night.

Here’s the script if anyone else wants to play (it also demonstrates how to post to twitter with wget, which may be handy for other automation projects):

#!/bin/sh
MB_POST="http://identi.ca/api/statuses/update.xml
  http://twitter.com/statuses/update.xml"

MB_USER=state your username
MB_PASS=state your password

IZ="$(find Maildir/cur/ Maildir/new/ -type f | wc -l)"
if [ $IZ -gt 0 ]; then
  IZ="$IZ"
else
  IZ="ZERO"
fi
IZ="inbox zero status: $IZ"

for MB_HTTP in $MB_POST; do
  wget -qO- --delete-after \
    --user="$MB_USER" --password="$MB_PASS" \
    --post-data "status=$IZ" $MB_HTTP > /dev/null
done

Update: Fixed script to use any Twitter-style microblog API, and included example URL from identi.ca. Go freedom!

Update: Even better, just post to all of them at once! Also fixed anchor… Despite switching to the visual editor weeks ago, I’m still not 100% used to the convenience of it. ;-)

2 Comments

  1. Posted July 23, 2008 at 10:30 | Permalink

    That’s awesome! Glad to see you on the site, and glad that the API is working for you. Freedom is the only way!

  2. Posted July 24, 2008 at 13:39 | Permalink

    Now posting at 18:00 every night, making it less likely that my inbox will be full of European timezone email. ;-)

Post a Comment

Your email is never shared. Required fields are marked *

*
*

Comments will be sent to the moderation queue.