Browse Source

Merge pull request #635 from giannivh/feature/protonmail-login-fix

🐛 Fix ProtonMail log-on failure when adding a new account
tags/3.2.1
Luke Smith 3 years ago
committed by GitHub
parent
commit
7a90055468
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      bin/mw

+ 2
- 1
bin/mw View File

@@ -236,7 +236,7 @@ Junk
Trash Trash
Sent Sent
Archive" && return 0 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 [ -z "$info" ] && echo "Log-on not successful." && return 1
mailboxes="$(echo "$info" | sed "s/.*\" //;s/\"//g" | tr -d ' ')" 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 ; cronmin="$OPTARG" ;;
T) setact toggle || exit 1 ;; T) setact toggle || exit 1 ;;
p) echo "NOTE: Protonmail users must install and configure Protonmail Bridge first for the first sync to work." 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" imap="127.0.0.1"
iport="1143" iport="1143"
smtp="127.0.0.1" smtp="127.0.0.1"


Loading…
Cancel
Save