Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- USER=
- PASS=
- COUNT=`curl -su $USER:$PASS https://mail.google.com/mail/feed/atom || echo "<fullcount>unknown number of</fullcount>"`
- COUNT=`echo "$COUNT" | grep -oPm1 "(?<=<fullcount>)[^<]+" `
- echo $COUNT
- if [ "$COUNT" != "0" ]; then
- if [ "$COUNT" = "1" ];then
- WORD="mail";
- else
- WORD="mails";
- fi
- fi
Add Comment
Please, Sign In to add comment