rob-luke / emails-html-to-pdf

Convert emails without attachments to pdf and send as email
32 stars 7 forks source link

Login Fails #37

Open cjfagerstrom opened 2 years ago

cjfagerstrom commented 2 years ago

My account has 2FA enabled on it, and I don't have the option to disable 2FA. I'm assuming that is why I'm getting this error, but I don't even get a prompt on my Microsoft Authenticator app to approve the login attempt, so it doesn't seem to be getting that far.

600
Skipping virtualenv creation, as specified in config file.
Running emails-html-to-pdf
Starting mail processing run
    raise self.error(dat[-1])
imaplib.IMAP4.error: b'LOGIN failed.'
Traceback (most recent call last):
  File "/app/main.py", line 257, in <module>
    process_mail(
  File "/app/main.py", line 102, in process_mail
    with MailBox(imap_url).login(imap_username, imap_password, imap_folder) as mailbox:
  File "/usr/local/lib/python3.9/site-packages/imap_tools/mailbox.py", line 44, in login
    login_result = self.box.login(username, password)
  File "/usr/local/lib/python3.9/imaplib.py", line 612, in login
    raise self.error(dat[-1])
imaplib.IMAP4.error: b'LOGIN failed.'