Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # CHANGE 73rn2gj6.default to your profile
- # If you want to play some sound check the mpg123 below
- # if ou use some other notification method change the notify-send below
- PREV_EMAILS=99999
- while [ true ]; do
- EMAILS=`grep 'X-Mozilla-Status: 0000' ~/.thunderbird/73rn2gj6.default/Mail/imap.planeta.inf.br/Inbox | wc -l`
- if [ $EMAILS -ne 0 ]; then
- notify-send --icon thunderbird "E-mail notification" "Unread e-mail count: ${EMAILS}"
- fi
- if [ $EMAILS -ne $PREV_EMAILS ]; then
- mpg123 ~/Música/aol.mp3
- PREV_EMAILS=$EMAILS
- fi
- sleep 600
- done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement