0b45d816c73e0bfba55d84fb50005ba2714ac0fa |
|
12-May-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Avoid unnecessary UIDNEXT lookups after saving a mail
The vsize checking code was expecting that this would always be a cheap
operation, but with imapc code it could trigger a remote STATUS (UIDNEXT)
call. Do this only when we've checked that this mailbox is updating vsize
header at all. |
abd812f275c5366feea20f25081d1c9296e552ef |
|
16-Feb-2017 |
Timo Sirainen <timo.sirainen@dovecot.fi> |
lib-storage: Update vsize header after sync only if sizes are cached.
The result isn't needed yet in that case, so if it's slow to get the sizes
it might as well be delayd until later. This is especially useful when
indexer-worker triggers FTS indexing. The vsizes can be added to index
after the mail is already read for FTS. Without this change the vsize
update would first open all the mails and then the FTS indexing would
open all the mails a second time. |