Symptoms
After clearing mailbox index files the emails are still not visible in webmail.
Description
There are rare occasions clearing the mailbox index files doesn't resolve the issue where the emails are unable to be seen via webmail. Typically when this issue arises you would run
/scripts/remove_dovecot_index_files --user cpaneluser
and the issue is resolved. If this doesn't clear the issue then the mailbox dovecot-uid* files need to be cleared.
Workaround
The index files and dovecot-uid* will need to be cleared at the same time in most cases.
cd /home/cpaneluser/mail/usersdomain.tld/localmailuser/
/scripts/remove_dovecot_index_files --user cpaneluser
/bin/rm -f ./dovecot-uid*