Here’s how to quickly check your unread Gmail from Linux Mint / Ubuntu terminal:
1. Issue the following command at the terminal –
sudo apt-get install curl
2. Now, to quickly check unread Gmail, issue the following command at the terminal –
curl -u <username>@gmail.com:<password> –silent “https://mail.google.com/mail/feed/atom” | tr -d ‘\n’ | awk -F ‘<entry>’ ‘{for (i=2; i<=NF; i++) {print $i}}’ | sed -n “s/<title>\(.*\)<\/title.*name>\(.*\)<\/name>.*/\2 – \1/p”
[…] and launch (Icedove) Thumderbird# Written by hip0 based on a one liner script suggeted by # https://ihaveapc.com/2012/03/how-to-quickly-check-your-unread-gmail-from-linux-mint-ubuntu-terminal/# hipo@noah:~$ date# Sun Apr 1 20:37:41 EEST 2012gmail_username=’YOUREMAILUSERNAME(without […]