Welcome, guest | Sign In | My Account | Store | Cart

Note: enter name of your email without "@gmail.com"

Bash, 13 lines
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
#!/bin/bash

num="\033[1;36m"
end="\033[0m"

read -p "Enter your mail: " name
read -p "Enter pass of mail: " pass

atom=`wget -qO - https://$name:$pass@mail.google.com/mail/feed/atom \
  --secure-protocol=TLSv1 -T 3 -t 1 --no-check-certificate | grep \
  fullcount | sed -e 's/<fullcount>\(.*\)<\/fullcount>/\1/'`

echo -e 'You have '$num$atom$end' new letters.'
Created by greg zakharov on Fri, 11 Oct 2013 (MIT)
Bash recipes (41)
greg zakharov's recipes (59)

Required Modules

  • (none specified)

Other Information and Tasks