瀏覽代碼

old redundancy removed

tags/v3.1
Luke Smith 6 年之前
父節點
當前提交
125e439930
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. +3
    -3
      etc/mailsync.sh

+ 3
- 3
etc/mailsync.sh 查看文件

@@ -11,11 +11,11 @@
ping -q -w 1 -c 1 `ip r | grep default | cut -d ' ' -f 3` >/dev/null || exit

# Get current number of new mail, then begin sync.
ori=$(find ~/.mail -wholename '*/new/*' | grep /new/ | grep -vi "spam\|trash\|junk" | wc -l)
ori=$(find ~/.mail -wholename '*/new/*' | grep -vi "spam\|trash\|junk" | wc -l)
offlineimap -o

# Output new new mail count.
new=$(find ~/.mail -wholename '*/new/*' | grep /new/ | grep -vi "spam\|trash\|junk" | wc -l)
# Recount new mail.
new=$(find ~/.mail -wholename '*/new/*' | grep -vi "spam\|trash\|junk" | wc -l)

# If new mail has grown, play a notification.
if [ "$new" -gt "$ori" ]; then


Loading…
取消
儲存