Check if a gmail address is a real gmail account
ACCOUNT=test@gmail.com curl -sI "https://mail.google.com/mail/gxlu?email=$ACCOUNT" | grep -q COMPASS && true || false; echo $?
- 0 -> exists
- 1 -> does not exist
ACCOUNT=test@gmail.com curl -sI "https://mail.google.com/mail/gxlu?email=$ACCOUNT" | grep -q COMPASS && true || false; echo $?