Unable to use certain charaters on imap outlook connection
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 77.2k
- Fork
- 36k
- Chỉ số merge pull request
- Chỉ số pull request đang chờ
Mô tả
- 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
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với các lệnh gọi imaplib.IMAP4_SSL và login được nêu trong báo cáo, sau đó tái hiện lỗi với outlook.office365.com:993 bằng các mật khẩu có và không có ký tự đặc biệt. So sánh phản hồi LOGIN failed quan sát được và xác định liệu vấn đề nằm ở imaplib hay ở tương tác với máy chủ; công việc được xem là hoàn tất khi có chẩn đoán có thể tái hiện kèm theo một regression test tập trung hoặc lý do được ghi lại cho việc không thể áp dụng thay đổi nào cho thư viện.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- networking
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Ít trao đổi
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100