浏览代码
curl redirects and times out
tags/v3.1
Luke Smith
4 年前
找不到此签名对应的密钥
GPG 密钥 ID: 4C50B54A911F6252
共有
2 个文件被更改,包括
2 次插入 和
6 次删除
-
bin/mailsync
-
bin/mw
|
|
@@ -81,16 +81,12 @@ else |
|
|
|
accounts=$* |
|
|
|
fi |
|
|
|
|
|
|
|
#( kill -46 "$(pidof "${STATUSBAR:-dwmblocks}")" >/dev/null 2>&1 ) 2>/dev/null |
|
|
|
|
|
|
|
# Parallelize multiple accounts |
|
|
|
for account in $accounts |
|
|
|
do |
|
|
|
for account in $accounts; do |
|
|
|
syncandnotify & |
|
|
|
done |
|
|
|
|
|
|
|
wait |
|
|
|
#( kill -46 "$(pidof "${STATUSBAR:-dwmblocks}")" >/dev/null 2>&1 ) 2>/dev/null |
|
|
|
|
|
|
|
notmuch new 2>/dev/null |
|
|
|
|
|
|
|
|
|
@@ -234,7 +234,7 @@ Junk |
|
|
|
Trash |
|
|
|
Sent |
|
|
|
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 |
|
|
|
mailboxes="$(echo "$info" | sed "s/.*\" //" | tr -d '
')" |
|
|
|
} |
|
|
|