don't mark emails as read when fetching them
This commit is contained in:
parent
da34e00365
commit
e933dfd361
|
@ -48,7 +48,7 @@ class MailConnection:
|
||||||
|
|
||||||
def __fetch_email(self, i):
|
def __fetch_email(self, i):
|
||||||
try:
|
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:
|
if data[0] is None:
|
||||||
return
|
return
|
||||||
raw_email_bytes = data[0][1]
|
raw_email_bytes = data[0][1]
|
||||||
|
|
Loading…
Reference in New Issue