Selaa lähdekoodia

fix blank opt flag (#454)

If no options are passed but the accounts are specified then the blank opt flag causes a (harmless) error message from mbsync about an empy channel.

Co-authored-by: rjl6789 <rlives6789@gmail.com>
tags/v3.1
Rob 4 vuotta sitten
committed by GitHub
vanhempi
commit
97708ce11e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. +1
    -1
      bin/mailsync

+ 1
- 1
bin/mailsync Näytä tiedosto

@@ -30,7 +30,7 @@ fi
# Check account for new mail. Notify if there is new content.
syncandnotify() {
acc="$(echo "$account" | sed "s/.*\///")"
mbsync "$opts" "$acc"
if [ -z "$opts" ]; then mbsync "$acc"; else mbsync "$opts" "$acc"; fi
new=$(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)
newcount=$(echo "$new" | sed '/^\s*$/d' | wc -l)
if [ "$newcount" -gt "0" ]; then


Ladataan…
Peruuta
Tallenna