last run file hidden
This commit is contained in:
parent
068768ff37
commit
f0abb7190a
1
.gitignore
vendored
1
.gitignore
vendored
@ -6,4 +6,5 @@ personal.muttrc
|
|||||||
thunderbird/
|
thunderbird/
|
||||||
autoconf/log
|
autoconf/log
|
||||||
etc/mailsynclastrun
|
etc/mailsynclastrun
|
||||||
|
etc/.mailsynclastrun
|
||||||
.dl
|
.dl
|
||||||
|
@ -32,7 +32,7 @@ pkill -RTMIN+12 i3blocks
|
|||||||
for account in $(ls ~/.mail)
|
for account in $(ls ~/.mail)
|
||||||
do
|
do
|
||||||
#List unread messages newer than last mailsync and count them
|
#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" ]
|
if [ "$newcount" -gt "0" ]
|
||||||
then
|
then
|
||||||
notify "$account" "$newcount" &
|
notify "$account" "$newcount" &
|
||||||
@ -41,4 +41,4 @@ done
|
|||||||
notmuch new
|
notmuch new
|
||||||
|
|
||||||
#Create a touch file that indicates the time of the last run of mailsync
|
#Create a touch file that indicates the time of the last run of mailsync
|
||||||
touch ~/.config/mutt/etc/mailsynclastrun
|
touch ~/.config/mutt/etc/.mailsynclastrun
|
||||||
|
Loading…
Reference in New Issue
Block a user