don't mark emails as read when fetching them

This commit is contained in:
Cyberes 2024-07-18 19:25:30 -06:00
parent da34e00365
commit e933dfd361
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class MailConnection:
def __fetch_email(self, i):
try:
result, data = self.mail.uid('fetch', str(i), '(BODY[])') # fetch the raw email
result, data = self.mail.uid('fetch', str(i), '(BODY.PEEK[])') # fetch the email without marking it as read
if data[0] is None:
return
raw_email_bytes = data[0][1]