You can inspect the index files with doveadm dump to check what is cached. Not sure how it went with mdbox storage driver.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.
Try this:
[root@ketola .INBOX]# pwd/vmail/sami@ketola.io/index/.INBOX[root@ketola .INBOX]# doveadm dump . | grep -c hdr.message-id11007