Source

KindleScripts / instapaper.sh

#!/bin/sh

source $HOME/.kindle/kindle
source $HOME/.kindle/instapaper

TEMP=`mktemp`
wget -O /dev/null --quiet --cookies=on --save-cookies=$TEMP --post-data="username=$USERNAME&password=$PASSWORD" http://www.instapaper.com/user/login
wget -O instapaper.mobi --quiet --cookies=on --load-cookies=$TEMP http://www.instapaper.com/mobi
echo|mutt -a instapaper.mobi $KINDLE@free.kindle.com
rm -f $TEMP instapaper.mobi