###creake the file gmail.sh with this content
#!/bin/bash
curl -u username --silent "https://mail.google.com/mail/feed/atom/all" | tr -d '\n' | awk -F '<entry>' '{for (i=2; i<=NF; i++) {print $i}}' | sed -n "s/<title>\(.*\)<\/title.*name>\(.*\)<\/name>.*/ ⬓ \2 - \1/p"
####Type your username
###If you want login directly type the next:
#!/bin/bash
curl -u username:password --silent "https://mail.google.com/mail/feed/atom/all" | tr -d '\n' | awk -F '<entry>' '{for (i=2; i<=NF; i++) {print $i}}' | sed -n "s/<title>\(.*\)<\/title.*name>\(.*\)<\/name>.*/ ⬓ \2 - \1/p"
####Type your username and password