Accidentally deleted .imap folder, how can I reindex?
Hello,
I have several users with Maildir format. After upgrading from 2.2 to 2.3, some directories could not be opened from thunderbird. The server log shows all kinds of errors including these:
Corrupted record in index cache file /home/user01/Maildir/.Elk&APw-ld&APY-tt/dovecot.index.cache: UID 2802: Broken physical size in mailbox Cached message size larger than expected (18 > 17, box=Sent, UID=2802)
While trying to fix the problem, I have accidentally deleted some of the index/cache directories. In particular, Maildir/.Sent/.imap and Maildir/.Sent/cur/.imap folders were deleted, but all of the mail message files are there. When I try to open the "Sent" folder from thunderbird, it does not show all of the messages. It only shows messages until 2019.01.12. If I send out an email from thunderbird, then a new message is copied into the Maildir/.Sent/ folder, but it is not visible from thunderbird. I have already tried to unsubscribe + subscribe to the Sent folder, but it did not work - it re-downloads all messages until 2019.01.12, but not after that.
Can I somehow regenerate the index files, force dovecot to recreated .imap foder, and force thunderbird to re-download and show all of the files somehow?
Thank you,
Laszlo
Hi,
doveadm force-resync -u user FOLDER
Sami
On 17 Jan 2019, at 13.32, Les nagylzs@gmail.com wrote:
Hello,
I have several users with Maildir format. After upgrading from 2.2 to 2.3, some directories could not be opened from thunderbird. The server log shows all kinds of errors including these:
Corrupted record in index cache file /home/user01/Maildir/.Elk&APw-ld&APY-tt/dovecot.index.cache: UID 2802: Broken physical size in mailbox Cached message size larger than expected (18 > 17, box=Sent, UID=2802)
While trying to fix the problem, I have accidentally deleted some of the index/cache directories. In particular, Maildir/.Sent/.imap and Maildir/.Sent/cur/.imap folders were deleted, but all of the mail message files are there. When I try to open the "Sent" folder from thunderbird, it does not show all of the messages. It only shows messages until 2019.01.12. If I send out an email from thunderbird, then a new message is copied into the Maildir/.Sent/ folder, but it is not visible from thunderbird. I have already tried to unsubscribe + subscribe to the Sent folder, but it did not work - it re-downloads all messages until 2019.01.12, but not after that.
Can I somehow regenerate the index files, force dovecot to recreated .imap foder, and force thunderbird to re-download and show all of the files somehow?
Thank you,
Laszlo
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=
Most interestingly, I can open any other message in many other folders. But the Sent folder is still wrong.
Any other idea?
Laszlo
Sami Ketola sami.ketola@dovecot.fi ezt írta (időpont: 2019. jan. 17., Cs, 13:09):
Hi,
doveadm force-resync -u user FOLDER
Sami
On 17 Jan 2019, at 13.32, Les nagylzs@gmail.com wrote:
Hello,
I have several users with Maildir format. After upgrading from 2.2 to 2.3, some directories could not be opened from thunderbird. The server log shows all kinds of errors including these:
Corrupted record in index cache file /home/user01/Maildir/.Elk&APw-ld&APY-tt/dovecot.index.cache: UID 2802: Broken physical size in mailbox Cached message size larger than expected (18 > 17, box=Sent, UID=2802)
While trying to fix the problem, I have accidentally deleted some of the index/cache directories. In particular, Maildir/.Sent/.imap and Maildir/.Sent/cur/.imap folders were deleted, but all of the mail message files are there. When I try to open the "Sent" folder from thunderbird, it does not show all of the messages. It only shows messages until 2019.01.12. If I send out an email from thunderbird, then a new message is copied into the Maildir/.Sent/ folder, but it is not visible from thunderbird. I have already tried to unsubscribe + subscribe to the Sent folder, but it did not work - it re-downloads all messages until 2019.01.12, but not after that.
Can I somehow regenerate the index files, force dovecot to recreated .imap foder, and force thunderbird to re-download and show all of the files somehow?
Thank you,
Laszlo
participants (2)
-
Les
-
Sami Ketola