<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 1. Dec 2021, at 13.05, Einar Bjarni Halldórsson <<a href="mailto:einar@isnic.is" class="">einar@isnic.is</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class=""><br class=""><blockquote type="cite" class="">Adding it to mail_always_cache_fields does not miraculously make cache updated. Each mail needs to be accessed for that to happen.<br class="">Ie. With doveadm fetch.<br class=""></blockquote>I couldn't figure out the doveadm fetch syntax for searching so I just ran the search manually twice. I assume that would update the cache?<br class=""><blockquote type="cite" class="">You can inspect the index files with doveadm dump to check what is cached. Not sure how it went with mdbox storage driver.<br class=""></blockquote>According to `man doveadm-dump` it just seems to dump index files. I tried dumping the cache file but it complains that it can't auto detect the file type.<br class=""></div></div></blockquote></div><br class=""><div class=""><br class=""></div><div class="">Try this:</div><div class=""><br class=""></div><div class=""><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">[root@ketola .INBOX]# pwd</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">/<a href="mailto:vmail/sami@ketola.io" class="">vmail/sami@ketola.io</a>/index/.INBOX</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">[root@ketola .INBOX]# doveadm dump . | grep -c hdr.message-id</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">11007</div></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">This is Maildir, but it should work the same way with mdbox.</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""><br class=""></div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class="">Sami</div><div style="margin: 0px; font-stretch: normal; font-size: 13px; line-height: normal; font-family: "Helvetica Neue";" class=""><br class=""></div></body></html>