dotfiles/.scripts/checkmail.sh

13 lines
195 B
Bash
Raw Normal View History

#!/bin/sh
STATE=`nmcli networking connectivity`
if [ $STATE = 'full' ]
then
#/usr/local/bin/msmtp-runqueue.sh
$HOME/.scripts/imap.sh
exit 0
fi
echo "No internet connection."
exit 0