Selaa lähdekoodia

curl redirects and times out

tags/v3.1
Luke Smith 3 vuotta sitten
vanhempi
commit
564c529f8e
No known key found for this signature in database GPG Key ID: 4C50B54A911F6252
2 muutettua tiedostoa jossa 2 lisäystä ja 6 poistoa
  1. +1
    -5
      bin/mailsync
  2. +1
    -1
      bin/mw

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

@@ -81,16 +81,12 @@ else
accounts=$* accounts=$*
fi fi


#( kill -46 "$(pidof "${STATUSBAR:-dwmblocks}")" >/dev/null 2>&1 ) 2>/dev/null

# Parallelize multiple accounts # Parallelize multiple accounts
for account in $accounts
do
for account in $accounts; do
syncandnotify & syncandnotify &
done done


wait wait
#( kill -46 "$(pidof "${STATUSBAR:-dwmblocks}")" >/dev/null 2>&1 ) 2>/dev/null


notmuch new 2>/dev/null notmuch new 2>/dev/null




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

@@ -234,7 +234,7 @@ Junk
Trash Trash
Sent Sent
Archive" && return 0 Archive" && return 0
info="$(curl -s --user "$login:$(pass $pass_prefix$fulladdr)" --url "${protocol:-imaps}://$imap")"
info="$(curl --location-trusted -s -m 5 --user "$login:$(pass $pass_prefix$fulladdr)" --url "${protocol:-imaps}://$imap")"
[ -z "$info" ] && echo "Log-on not successful." && return 1 [ -z "$info" ] && echo "Log-on not successful." && return 1
mailboxes="$(echo "$info" | sed "s/.*\" //" | tr -d ' ')" mailboxes="$(echo "$info" | sed "s/.*\" //" | tr -d ' ')"
} }


Ladataan…
Peruuta
Tallenna