mutt-wizard

fork of Luke Smiths mutt-wizard
git clone git://git.jakekoroman.com/mutt-wizard
Log | Files | Refs | README | LICENSE

commit 7a900554681bfd3a270627b5ec9629b6af78b51f
parent 158f28b2940355f530ac592cdb9a9af3cd5c2959
Author: Luke Smith <luke@lukesmith.xyz>
Date:   Fri, 22 Jan 2021 15:22:57 -0500

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

:bug: Fix ProtonMail log-on failure when adding a new account
Diffstat:
Mbin/mw | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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"