Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- settings="$HOME/Launchers"/.tconk-settings-general
- # load variables from files
- . "$settings"
- . "$accountInfo"
- # make sure that you have an 'account info' file at the above location
- # with the following inside of it:
- #
- # username=<gmail username>
- # password=<gmail password>
- #
- # make sure that <gmail username> is only the stuff before the '@' sign.
- # it would be 'username=example' if your email address was 'example@gmail.com'
- mailcount="$(wget -q -O - https://mail.google.com/a/gmail.com/feed/atom --http-user="$username"@gmail.com --http-password="$password" --no-check-certificate | grep -oE "<fullcount>[0-9]+</fullcount>" | sed 's|<[^0-9]*>||g')"
- echo "$mailcount" > "$tmpfolder"/time-mail
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement