April 04, 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
----------------
Please consider crypto tipping:
  

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! If you have used this info in any way, please comment below and link/link-back to your project (if applicable). Please Share.
I accept Bitcoin tips of ANY amount to: 1GS3XWJCTWU7fnM4vfzerrVAxmnMFnhysL
I accept Litecoin tips of ANY amount to: LTBvVxRdv2Lz9T41UzqNrAVVNw4wz3kKYk