Kaynağa Gözat

mailsynclast run fix

tags/v3.1
Luke Smith 5 yıl önce
ebeveyn
işleme
2183b2b469
Veri tabanında bu imza için bilinen anahtar bulunamadı GPG Anahtar Kimliği: 4C50B54A911F6252
1 değiştirilmiş dosya ile 2 ekleme ve 2 silme
  1. +2
    -2
      bin/mailsync

+ 2
- 2
bin/mailsync Dosyayı Görüntüle

@@ -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"

Yükleniyor…
İptal
Kaydet