Hello,
Did you rename files? Or compressed/uncompressed them recently?
You will need to rename files, e.g:
- /home/user/imap/domain.com/ha.nt/Maildir/.INBOX.Nguyet KT/cur/1706867343.M973974P15842.mail11.domain.net,S=3423897,W=3468499:2,S
to
- /home/user/imap/domain.com/ha.nt/Maildir/.INBOX.Nguyet KT/cur/1706867343.M973974P15842.mail11.domain.net
More reading:
https://doc.dovecot.org/2.3/admin_manual/mailbox_formats/maildir/
Dovecot supports reading a few fields from the <base filename>:
,S=<size>: <size> contains the file size. Getting the size from the filename avoids doing a system stat() call, which may improve the performance. This is especially useful with Quota Backend: maildir.
,W=<vsize>: <vsize> contains the file’s RFC822.SIZE, i.e., the file size with linefeeds being CR+LF characters. If the message was stored with CR+LF linefeeds, <size> and <vsize> are the same. Setting this may give a small speedup because now Dovecot doesn’t need to calculate the size itself.