Okay, to be fair, the idea for this geeklet is not mine, 80% of the script is also found elsewhere on this site. Here's where I got my code, and he's not even the author either. So I accept no credits for the work. :-) Of course you can do a lot of tweaking on this script, but this is how I like it. Learned a lot about
awk while making it, by the way.
What it does
It shows you 10 unread mails from your Gmail account. With the name of the sender and the title.
curl -u firstname.lastname@example.org:yourpassword --silent "https://mail.google.com/mail/feed/atom" | egrep "§/±/g" | sed -e "s/§//g" | sed -e "s/§$//g" | tr "§" "n" | sed -e "s/<[^>]*>//g" | sed -e "s/([^±]*)±([^±]*)$/2:± - 1±/g" | tr "±" "n" | tail -n20</pre><p> </p>