Show your unread emails (gmail)

Posted in Messaging by zhhz 3556 days ago

Show your un-read email on your desktop from Gmail.

Please change yourgmailaccount and your_password in the shell script.


curl -u your_gmail_account:your_password --silent "https://mail.google.com/mail/feed/atom" | tr -d 'n' | awk -F '' '{for (i=2; i<=NF; i++) {print $i}}' | sed -n "s/<title>(.*)</title.*name>(.*)</name>.*/2 - 1/p"


User Avatar
futuhat 3556 days ago
can't find the shell script.
User Avatar
matt 3556 days ago
Yeah, looks like the Geeklet file didn't upload properly.
User Avatar
madmac 3548 days ago
User Avatar
zhhz 3546 days ago
Sorry about that, I have no idea why it failed to upload. Anyway, it is very simple to create by yourself, here is the script:


Log in to comment or register here.