imap: call delete_expired_imap_messages() less often

This operation takes roughly 0.3 s on a moderate size database.
Calling it once before scanning all folders and scanning
the watched folder instead of each time after downloading
a message from a folder speeds up IMAP loop.
This commit is contained in:
link2xt
2022-01-30 19:28:30 +00:00
parent 9ccd9c3e0e
commit 7cf4bcaca2
3 changed files with 11 additions and 5 deletions

View File

@@ -12,6 +12,7 @@
### Fixes
- fix splitting off text from webxdc messages #3032
- call slow `delete_expired_imap_messages()` less often #3037
## 1.72.0