Browse Source

mailsync script gives args to offlineimap

tags/v3.1
Luke Smith 6 years ago
parent
commit
7f5d077b72
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      etc/mailsync.sh

+ 1
- 1
etc/mailsync.sh View File

@@ -17,7 +17,7 @@ fi


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


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


Loading…
Cancel
Save