[Dovecot] Resync dovecot index after manual moving mails in maildir
Hello,
i'm new to dovecot and this list. Dovecot works very well after all! I now have a small problem, maybe there is a solution.
For automatically spam learning i've created a maildir folder called "spam learn". Every hour spamassassin scans this folder and learn from the mails or files at this folder. After this learn i move the files to trash. If at this moment a client is connected via imap to this account, the mua (in my case thunderbird) doesnt update its folder view after reselecting the folder. Is this a mua problem or is this a index "problem" in dovecot (i know, it isnt a real problem or bug). If the second is the truth, is there any possibility to tell dovecot to rescan the maildir?
Thanks in advance.
Bye from Germay Danilo
On Fri, 2006-01-20 at 20:27 +0100, Danilo Reinhardt wrote:
Hello,
i'm new to dovecot and this list. Dovecot works very well after all! I now have a small problem, maybe there is a solution.
For automatically spam learning i've created a maildir folder called "spam learn". Every hour spamassassin scans this folder and learn from the mails or files at this folder. After this learn i move the files to trash. If at this moment a client is connected via imap to this account, the mua (in my case thunderbird) doesnt update its folder view after reselecting the folder. Is this a mua problem or is this a index "problem" in dovecot (i know, it isnt a real problem or bug). If the second is the truth, is there any possibility to tell dovecot to rescan the maildir?
Dovecot updates indexes automatically, so I'm thinking this is MUA problem. If you click send/receive mails, doesn't it update the mailbox then?
Hello,
i'm new to dovecot and this list. Dovecot works very well after all! I now have a small problem, maybe there is a solution.
For automatically spam learning i've created a maildir folder called "spam learn". Every hour spamassassin scans this folder and learn from the mails or files at this folder. After this learn i move the files to trash. If at this moment a client is connected via imap to this account, the mua (in my case thunderbird) doesnt update its folder view after reselecting the folder. Is this a mua problem or is this a index "problem" in dovecot (i know, it isnt a real problem or bug). If the second is the truth, is there any possibility to tell dovecot to rescan the maildir?
Dovecot updates indexes automatically, so I'm thinking this is MUA problem. If you click send/receive mails, doesn't it update the mailbox then? Thanks for your answer. I tried it again and i cant exactly say it is a mua problem. The steps i do are:
- start thunderbird and connect to dovecot
- "open" the folder where the spam message is in
- move the message via "cp" command on the server from on folder to the imap trash folder
- do a "refresh" or something else on the mua (no change, the message is still in the old folder, but the message will also be seen in trash)
- close the mua and start it again
- select the folder an the message is still there
- if i select the mail itself in the old folder it cant be displayed (but i also get no error
I enabled mail debug within dovecot's config, but i doesnt get any additional information. I also test the same steps using pegasus mail, pegasus mail has an "refresh folder" command, but i get the same problem. I also tried to restart dovecot and reconnect with both mua's, but the message seems to be still there, but there is no real file anymore on the server in the maildir folder!
On Sun, 2006-01-22 at 14:50 +0100, Danilo Reinhardt wrote:
Thanks for your answer. I tried it again and i cant exactly say it is a mua problem. The steps i do are:
- start thunderbird and connect to dovecot
- "open" the folder where the spam message is in
- move the message via "cp" command on the server from on folder to the imap trash folder
"mv" I assume?
- do a "refresh" or something else on the mua (no change, the message is still in the old folder, but the message will also be seen in trash)
- close the mua and start it again
- select the folder an the message is still there
- if i select the mail itself in the old folder it cant be displayed (but i also get no error
What Dovecot version? What filesystem do you use?
Timo Sirainen schrieb:
On Sun, 2006-01-22 at 14:50 +0100, Danilo Reinhardt wrote:
Thanks for your answer. I tried it again and i cant exactly say it is a mua problem. The steps i do are:
- start thunderbird and connect to dovecot
- "open" the folder where the spam message is in
- move the message via "cp" command on the server from on folder to the imap trash folder
"mv" I assume?
Yes, for sure (sorry :) )
- do a "refresh" or something else on the mua (no change, the message is still in the old folder, but the message will also be seen in trash)
- close the mua and start it again
- select the folder an the message is still there
- if i select the mail itself in the old folder it cant be displayed (but i also get no error
What Dovecot version? What filesystem do you use?
Dovecot 1.0.alpha5 running on a debian 3.1 server using reiserfs as fs.
Does dovecot normally shoud recognize such a file move?? But maybe this helps. If i "drag and drop" an email in my mua to the imap folder the doesnt show the old (non real existing) email anymore, it only shows the newly dragged in mail.
Another thing: the dovecot.index.log file is the only one that has changed after the move.
participants (2)
-
Danilo Reinhardt
-
Timo Sirainen