]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
mdbox: Optimize mail_temp_scan_interval storage/ scanning
authorTimo Sirainen <timo.sirainen@open-xchange.com>
Tue, 20 Jun 2023 15:58:13 +0000 (18:58 +0300)
committerMarkus Valentin <markus.valentin@open-xchange.com>
Wed, 28 Jun 2023 12:26:18 +0000 (14:26 +0200)
commit7268e169ec46921abe702c40cfd4378022bfdc71
treed30054361d08d612ed761418dafa6f437d190b1c
parent37ddfe8efbcf8011f4ef4fc020d54651c67f1568
mdbox: Optimize mail_temp_scan_interval storage/ scanning

Use the generic dbox scanning code, which avoids stat()ing the directory by
keeping the timestamp in index header. Also do the scanning while at
session deinit instead of startup, so the latency isn't visible to clients.
src/lib-storage/index/dbox-multi/mdbox-map.c