curl gmail

curl -u user@gmail.com --silent "https://mail.google.com/mail/feed/atom" > tmp.txt
# will ask for password
cat tmp.txt | xml2 | grep title= | cut -d "=" -f 2
# will show spam as well

# show titles
curl -u user@gmail.com --silent "https://mail.google.com/mail/feed/atom" | xml2 | grep title= | cut -d "=" -f 2 | tail -12
# or emails
curl -u user@gmail.com --silent "https://mail.google.com/mail/feed/atom" | xml2 | grep email= | cut -d "=" -f 2 | tail -12
# possible whitelist of important emails possible here
about / github / jekyll