Thursday, April 4, 2013

Check GMail via Linux Commandline

one line:
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
----------------

2 comments:

  1. perl 'prettify' seems to fail now. needs re-work.

    ReplyDelete
  2. this may no longer work for you, as I personally receive a "Sign-in attempt prevented" email from google when i try this.

    ReplyDelete

Comments, Suggestions or "Thank you's" Invited!