Unable to use certain charaters on imap outlook connection
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 77.2k
- Fork
- 36k
- Metriche di merge delle PR
- Metriche PR in attesa
Descrizione
- 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
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con le chiamate a imaplib.IMAP4_SSL e login mostrate nel report, quindi riproduci il malfunzionamento verso outlook.office365.com:993 usando password con e senza caratteri speciali. Confronta la risposta osservata LOGIN failed e determina se il problema è in imaplib o nell’interazione con il server; il lavoro è completato quando è disponibile una diagnosi riproducibile con un test di regressione mirato oppure una motivazione documentata per cui non è applicabile alcuna modifica alla libreria.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- networking
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Tranquilla
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100