You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, unfortunately I'm having issues connecting to an iCloud IMAP mailbox
from redbox import EmailBox
from pprint import pprint
import os
import dotenv
dotenv.load_dotenv()
imap_host = os.getenv('imap_host')
imap_user = os.getenv('imap_user')
imap_pass = os.getenv('imap_pass')
box = EmailBox(
host=imap_host,
port=993,
username=imap_user,
password=imap_pass
)
inbox = box["INBOX"]
for msg in inbox.search(subject='Your Backup Summary'):
pprint(msg.from_)
pprint(msg.to)
pprint(msg.subject)
pprint(msg.text_body)
pprint(msg.html_body)
Error message:
Traceback (most recent call last):
File "/Users/[Redacted]/check_for_code.py", line 19, in <module>
inbox = box["INBOX"]
File "/Users/[Redacted]/venv/lib/python3.9/site-packages/redbox/box.py", line 37, in __getitem__
for mailbox in self.mailfolders:
File "/Users/[Redacted]/venv/lib/python3.9/site-packages/redbox/box.py", line 45, in mailfolders
self.update()
File "/Users/[Redacted]/venv/lib/python3.9/site-packages/redbox/box.py", line 83, in update
items = match.groupdict()
AttributeError: 'NoneType' object has no attribute 'groupdict'
I tried some debugging, but can't see any obvious issue beyond '_connection': None
Hello, unfortunately I'm having issues connecting to an iCloud IMAP mailbox
Error message:
I tried some debugging, but can't see any obvious issue beyond
'_connection': None
Output:
Other notes
use_starttls=True
but this didn't resolveThe text was updated successfully, but these errors were encountered: