last run file hidden

This commit is contained in:
Luke Smith
2018-10-30 22:52:01 -04:00
parent 068768ff37
commit f0abb7190a
2 changed files with 3 additions and 2 deletions

View File

@ -32,7 +32,7 @@ pkill -RTMIN+12 i3blocks
for account in $(ls ~/.mail)
do
#List unread messages newer than last mailsync and count them
newcount=$(find ~/.mail/"$account"/INBOX/new/ -type f -newer ~/.config/mutt/etc/mailsynclastrun 2> /dev/null | wc -l)
newcount=$(find ~/.mail/"$account"/INBOX/new/ -type f -newer ~/.config/mutt/etc/.mailsynclastrun 2> /dev/null | wc -l)
if [ "$newcount" -gt "0" ]
then
notify "$account" "$newcount" &
@ -41,4 +41,4 @@ done
notmuch new
#Create a touch file that indicates the time of the last run of mailsync
touch ~/.config/mutt/etc/mailsynclastrun
touch ~/.config/mutt/etc/.mailsynclastrun