Should I use full folder path, or relative to the user's home?
I have tried both:
doveadm force-resync -u gandalf /home/gandalf/Maildir/.Sent
doveadm force-resync -u gandalf Sent
There was no error message, but /home/gandalf/Maildir/.Sent/.imap was not created, and thunderbird still did not show the new messages.
Also, when I try to open an old message from the Sent folder, thunderbird displays nothing (even not an error message) and the dovecot server logs something like this (fqdn and ip addresses replaced):
Jan 17 07:44:33 imap-login: Info: Login: user=<gandalf>, method=PLAIN, rip=1.1.1.1, lip=1.1.1.1 mpid=91975, TLS, session=<CpahwaZ/vr/B4SFL>
Jan 17 07:44:33 imap(gandalf)<91975><CpahwaZ/vr/B4SFL>: Error: Mailbox Sent: UID=12685: read(/home/gandalf/Maildir/.Sent/cur/
1547303831.M917864P1881.fqdn.com,S=9617,W=9782:2,) failed: Cached message size larger than expected (9617 > 17, box=Sent, UID=12685) (read reason=mail stream)
Jan 17 07:44:33 imap(gandalf)<91975><CpahwaZ/vr/B4SFL>: Error: Corrupted record in index cache file /home/gandalf/Maildir/.Sent/dovecot.index.cache: UID 12685: Broken physical size in mailbox Sent: read(/home/gandalf/Maildir/.Sent/cur/
1547303831.M917864P1881.fqdn.com,S=9617,W=9782:2,) failed: Cached message size larger than expected (9617 > 17, box=Sent, UID=12685)
Jan 17 07:44:33 imap(gandalf)<91975><CpahwaZ/vr/B4SFL>: Error: Mailbox Sent: UID=12685: read(/home/gandalf/Maildir/.Sent/cur/
1547303831.M917864P1881.fqdn.com,S=9617,W=9782:2,) failed: Cached message size larger than expected (9617 > 17, box=Sent, UID=12685)
Jan 17 07:44:33 imap(gandalf)<91975><CpahwaZ/vr/B4SFL>: Info: FETCH failed: Internal error occurred. Refer to server log for more information. [2019-01-17 07:44:33] in=279 out=507265 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Most interestingly, I can open any other message in many other folders. But the Sent folder is still wrong.
Any other idea?
Laszlo