fix(email): Allow users to pull all (read & unread) emails during initial sync
This commit is contained in:
parent
da5b723939
commit
250dbf6a1c
1 changed files with 0 additions and 5 deletions
|
|
@ -236,11 +236,6 @@ class EmailServer:
|
|||
EmailAccount.uidnext, uidnext
|
||||
).where(EmailAccount.name == self.settings.email_account_name).run()
|
||||
|
||||
# uid validity not found pulling emails for first time
|
||||
if not uid_validity:
|
||||
self.settings.email_sync_rule = "UNSEEN"
|
||||
return
|
||||
|
||||
sync_count = 100 if uid_validity else int(self.settings.initial_sync_count)
|
||||
from_uid = (
|
||||
1 if uidnext < (sync_count + 1) or (uidnext - sync_count) < 1 else uidnext - sync_count
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue