Unable to use certain charaters on imap outlook connection
まだ誰も着手していません。
- 主要言語
- Python
- スター
- 77.2k
- フォーク
- 36k
- PR マージ指標
- PR 指標を取得中
説明
- Operating system and architecture: Windows 10 x86_64
I am having trouble logging in to the imap server "outlook.office365.com:993", basically sometimes the passwords i use contain special characters (-"_?$%& and such) that make the login fail with error: imaplib.IMAP4.error: b'LOGIN failed.' i know that this is a problem with the characters, because it appears only when the password contains some of them, while when the password is only numbers/letters it works fine. This is the code that is causing the issue:
def get_email(username, password):
imap = imaplib.IMAP4_SSL(host="outlook.office365.com", port=993)
imap.login(username, password)
i have tried many different things:
-Escaping the characters with \ and another time with ^
-Writing double quotes around the special characters
and more
online there is almost no documentation/examples on it. I also am not able to change the password to the account, as much as i would like to. And it also logins fine on the outlook site
For testing purposes here is a password similar to that one:
mozz@-rell@?9torey
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
レポートに示されている imaplib.IMAP4_SSL と login の呼び出しから始め、特殊文字を含むパスワードと含まないパスワードを使って outlook.office365.com:993 に対する失敗を再現します。観測された LOGIN failed 応答を比較し、問題が imaplib にあるのかサーバーとのやり取りにあるのかを判断します。完了の条件は、再現可能な診断と、焦点を絞った回帰テスト、またはライブラリの変更が適用できない理由を文書化したものです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- networking
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 静か
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 35/100