Using the following command, you can check your unread messages in gmail, from terminal:
replace username with your gmail username.
This command will promt for your password, enter it and view your unread in your gmail account .
$ curl -u username --silent "https://mail.google.com/mail/feed/atom" | perl -ne 'print "\t" if //; print "$2\n" if /<(title|name)>(.*)<\/\1>/;'
replace username with your gmail username.
This command will promt for your password, enter it and view your unread in your gmail account .
Comments