summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2021-01-22 15:22:57 -0500
committerGitHub <noreply@github.com>2021-01-22 15:22:57 -0500
commit7a900554681bfd3a270627b5ec9629b6af78b51f (patch)
tree6611b09ca9b9bc5aa8a219d2906e7421a05dae39 /bin
parent158f28b2940355f530ac592cdb9a9af3cd5c2959 (diff)
parent5920ca462db40309e927e1d58feb08023968e687 (diff)
Merge pull request #635 from giannivh/feature/protonmail-login-fix
:bug: Fix ProtonMail log-on failure when adding a new account
Diffstat (limited to 'bin')
-rwxr-xr-xbin/mw3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/mw b/bin/mw
index 4716989..67c389d 100755
--- a/bin/mw
+++ b/bin/mw
@@ -236,7 +236,7 @@ Junk
Trash
Sent
Archive" && return 0
- info="$(curl --location-trusted -s -m 5 --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:${iport:-993}")"
[ -z "$info" ] && echo "Log-on not successful." && return 1
mailboxes="$(echo "$info" | sed "s/.*\" //;s/\"//g" | tr -d ' ')"
}
@@ -351,6 +351,7 @@ while getopts "fplhodTYD:y:i:I:s:S:u:a:n:x:m:t:" o; do case "${o}" in
t) setact toggle || exit 1 ; cronmin="$OPTARG" ;;
T) setact toggle || exit 1 ;;
p) echo "NOTE: Protonmail users must install and configure Protonmail Bridge first for the first sync to work."
+ protocol="imap"
imap="127.0.0.1"
iport="1143"
smtp="127.0.0.1"