소스 검색

🐛 Supply imap port to curl login check

Part 2 of 2 for "Log-on not successful" bug when using ProtonMail.

The curl login check uses the imap(s) protocol, which means it will use
the default ports. However, when using ProtonMail, these ports are
different (namely 1143 instead of 993).

We now use the port variable in the curl login command, defaulting to
993 when the port was not overridden.

The port variable was already set when the ProtonMail flag (-p) was set.

Bug mentioned in:
Fixes:
- https://github.com/LukeSmithxyz/mutt-wizard/issues/608
- https://github.com/LukeSmithxyz/mutt-wizard/issues/622
tags/3.2.1
Gianni Van Hoecke 3 년 전
부모
커밋
5920ca462d
No known key found for this signature in database GPG 키 ID: A4AE1D7241766061
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      bin/mw

+ 1
- 1
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 ' ')"
}


불러오는 중...
취소
저장