Я хочу создать базовый скрипт, который может автоматически сортировать все мои электронные письма (я использую Outlook) в разные папки. So let's say I got an email that came from
[email protected], the script will create a folder called "company" if one doesn't already exist, and then move the email to that folder (with additional rules I'd add in the future).
I tried to do it with Python using the imaplib and imapclient libraries, and with Nodejs с использованием imap :
Код: Выделить всё
EMAIL = '[email protected]'
PASSWORD = 'my_password'
IMAP = 'outlook.office365.com'
imap_ssl = imaplib.IMAP4_SSL(host=IMAP, port=993)
resp_code, response = imap_ssl.login(EMAIL, PASSWORD)
print("----------------")
print(resp_code)
print("----------------")
print(response)
Использование обоих nodejs и python Я попытался войти в свою электронную почту с моим паролем и с «паролем приложения», но он не работает; Я получаю ошибку входа в систему каждый раз: < /p>
Кто -нибудь прошел через это? Я пропустил шаг?
Подробнее здесь:
https://stackoverflow.com/questions/793 ... to-folders