On 08/14/2014 04:19 AM, Carlos E. R. wrote:
El 2014-08-13 a las 16:19 -0400, James Knott escribió:
Yes they are under the users mail directory. I could see the individual messages by viewing with vi. However, I got things going again by copying the files for /var/spool/mail from my backup again. That seems to have fixed it. Hmmm... I have my inbox back, but not the other folders.
Did you regenerate dovecot indexes?
You do that by stopping dovecot, recursively deleting all .imap folders, then restarting dovecot.
#!/bin/bash cd ~/Mail echo "Parando dovecot" sudo /usr/bin/systemctl stop dovecot.service echo "Hay que borrar primero todos los .imap o hay problemas." find ~/Mail -name '.imap' -type d -exec rm -r -d '{}' \; echo "Y... Arrancando dovecot" sudo /usr/bin/systemctl start dovecot.service
Of course, if your mail is in another folder, or for several users, you have to adapt that.
I ran the command "find ./ -name '.imap' -type d -exec rm -r -d '{}' \;" from the users directory, which cleared out all the .imap directories.
It is also possible that your dovecot config after the migration points to the INBOX, but not to the folders:
/etc/dovecot/local.conf: mail_location = mbox:~/Mail:INBOX=/var/mail/%u
That's mine.
Mine's the same except its "mail:INBOX=", which is where the mail is. After restarting dovecot, the problem remains and there are no .imap directories. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org