summaryrefslogtreecommitdiff
path: root/bin/mw
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-01-07 17:04:08 -0500
committerLuke Smith <luke@lukesmith.xyz>2021-01-07 17:04:08 -0500
commit564c529f8ec3aa6697d966dde89abdf132012240 (patch)
tree43eb2c6ee391073e7cc9045106141d0211530117 /bin/mw
parent16de5dc350d06cd45338271a2286c0629ef20435 (diff)
curl redirects and times out
Diffstat (limited to 'bin/mw')
-rwxr-xr-xbin/mw2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/mw b/bin/mw
index 0c00e53..19befb3 100755
--- a/bin/mw
+++ b/bin/mw
@@ -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 ' ')"
}