curl -u username --silent "https://mail.google.com/mail/feed/atom" | perl -ne 'print "\t" if //; print "$2\n" if /<(title|name)>(.*)<\/\1>/;'
originally from: http://www.commandlinefu.com/commands/view/3386/check-your-unread-gmail-from-the-command-line
----------------
Please consider crypto tipping:
perl 'prettify' seems to fail now. needs re-work.
ReplyDeletethis may no longer work for you, as I personally receive a "Sign-in attempt prevented" email from google when i try this.
ReplyDelete