Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep mailboxes up to date #323

Open
scanner opened this issue Jul 21, 2024 · 0 comments
Open

Keep mailboxes up to date #323

scanner opened this issue Jul 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@scanner
Copy link
Owner

scanner commented Jul 21, 2024

Right now we only keep the internal asimap db and add uid's to new messages when a user is logged in and for a short bit after the user logs out.

An initial scan for a specific user can take a very long time (minutes). Especially apparent on first logins when transporting mailboxes into asimap.

We want to minimize this impact by having the main server go through all of the asimap accounts on a regular basis that have not had a login in, say, 24 hours, and starting up their user_server, even without a requesting IMAP client, to do the initial rescan of all of their folders. Those user servers will exit after a timeout when they have completed their work.

So, make a task in the server that will go through the accounts, and launch their user server (for it to exit on its own when it is done the folder check and its timeout expires.)

Perhaps once per 24 hours per account that has not logged in in 24 hours, spread throughout the day.

@scanner scanner added the enhancement New feature or request label Jul 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant