Update mail.py to fetch mails in bulk
This speeds up the mail processing. See also https://github.com/paperless-ngx/paperless-ngx/discussions/5230
This commit is contained in:
parent
8da2535a65
commit
eacee78706
@ -569,6 +569,7 @@ class MailAccountHandler(LoggingMixin):
|
|||||||
criteria=criterias,
|
criteria=criterias,
|
||||||
mark_seen=False,
|
mark_seen=False,
|
||||||
charset=rule.account.character_set,
|
charset=rule.account.character_set,
|
||||||
|
bulk=True
|
||||||
)
|
)
|
||||||
except Exception as err:
|
except Exception as err:
|
||||||
raise MailError(
|
raise MailError(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user