ソースを参照

last run file hidden

tags/v3.1
Luke Smith 5年前
コミット
f0abb7190a
この署名に対応する既知のキーがデータベースに存在しません GPGキーID: 4C50B54A911F6252
2個のファイルの変更3行の追加2行の削除
  1. +1
    -0
      .gitignore
  2. +2
    -2
      etc/mailsync.sh

+ 1
- 0
.gitignore ファイルの表示

@@ -6,4 +6,5 @@ personal.muttrc
thunderbird/
autoconf/log
etc/mailsynclastrun
etc/.mailsynclastrun
.dl

+ 2
- 2
etc/mailsync.sh ファイルの表示

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

読み込み中…
キャンセル
保存