Unable to use certain charaters on imap outlook connection
Ninguém assumiu esta issue ainda.
- Linguagem predominante
- Python
- Estrelas
- 77.2k
- Forks
- 36k
- Métricas de merge de PRs
- Métricas de PR pendentes
Descrição
- 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
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece com as chamadas imaplib.IMAP4_SSL e login mostradas no relatório e, em seguida, reproduza a falha em outlook.office365.com:993 usando senhas com e sem caracteres especiais. Compare a resposta observada LOGIN failed e determine se o problema está no imaplib ou na interação com o servidor; considera-se concluído quando houver um diagnóstico reproduzível com um teste de regressão focado ou uma justificativa documentada de que nenhuma alteração na biblioteca é aplicável.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python
- Domínio
- networking
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Pouca atividade
- Clareza
- Precisa de esclarecimento
- Facilidade para iniciantes
- 35/100