summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2019-04-22 09:26:37 -0400
committerLuke Smith <luke@lukesmith.xyz>2019-04-22 09:26:37 -0400
commit2183b2b469ef3e1564f84d759a59ded5c7493cd5 (patch)
treea1d1064670a90aeaf2aa91b5ae0a075e768795fd /bin
parentdcdbfd3ce783845b6590b18f83f707923a16cd2d (diff)
mailsynclast run fix
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mailsync4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/mailsync b/bin/mailsync
index 48155b1..08b3e93 100755
--- a/bin/mailsync
+++ b/bin/mailsync
@@ -25,10 +25,10 @@ pkill -RTMIN+12 i3blocks
for account in "$HOME/.local/share/mail/"*
do
acc="$(echo "$account" | sed "s/.*\///")"
- newcount=$(find "$HOME/.local/share/mail/$acc/INBOX/new/" "$HOME/.local/share/mail/$acc/Inbox/new/" "$HOME/.local/share/mail/$acc/inbox/new/" -type f -newer "$HOME/.config/mutt/bin/.mailsynclastrun" 2> /dev/null | wc -l)
+ newcount=$(find "$HOME/.local/share/mail/$acc/INBOX/new/" "$HOME/.local/share/mail/$acc/Inbox/new/" "$HOME/.local/share/mail/$acc/inbox/new/" -type f -newer "$HOME/.config/mutt/.mailsynclastrun" 2> /dev/null | wc -l)
[ "$newcount" -gt "0" ] && notify "$acc" "$newcount" &
done
notmuch new 2>/dev/null
#Create a touch file that indicates the time of the last run of mailsync
-touch "$HOME/.config/mutt/bin/.mailsynclastrun"
+touch "$HOME/.config/mutt/,mailsynclastrun"