[Dovecot] All mails unread after short while
Hello,
I have on Ubuntu 8.04 Postfix 2.5.1 and Dovecot 1.0.10. The mails are saved in maildir format.
In one account on my server all mails are unread all the time. If i set them as read in my client (IMAP with Mac Mail 4.4 or IMAP with Squirrelmail, it doesn’t matter) they seem to be checked as read for some minutes or less, but very soon they are unread again, so i guess, only my client thinks that they are read, but after the next check, the client reads again that they are unread.
Now i don’t know where to look or change the “Has been read”-Flag in the maildir-directory. Is it in some file or where is it, the flag?
It is only one account, the other accounts on the same domain and on other domains are working quite well. Maybe it is only after a Squirrelmail update last week, but I am not sure.
Thank you,
Kind Regards,
frank walter
Upgrading would be a very good idea and would likely solve your problem in the process... there should be repos that have the latest versions available.
Unfortunately this was what i tried a month before, without success. After upgrading the communication between Postfix and Dovecot stopped.
On 2011-03-03 11:16 AM, francwalter@gmx.net wrote:
Upgrading would be a very good idea and would likely solve your problem in the process... there should be repos that have the latest versions available.
Unfortunately this was what i tried a month before, without success. After upgrading the communication between Postfix and Dovecot stopped.
Which is not much of a problem description, but obviously means you did something wrong... so, instead of finding/fixing the problem, you just reverted?
--
Best regards,
Charles
Am 03.03.2011 um 17:56 schrieb Charles Marcus:
Which is not much of a problem description, but obviously means you did something wrong... so, instead of finding/fixing the problem, you just reverted?
Yes, i reverted and put back the config-files of the old dovecot version. After this everything worked well again like i thought. I will upgrade Dovecot in some weeks for sure because of Quota, but at the moment i am happy if just the little (?) Unread-problem is away ☺
But anyway, where can i find the place where the mails are set to read or unread?
On 3/3/2011 10:06 AM, francwalter@gmx.net wrote:
But anyway, where can i find the place where the mails are set to read or unread?
Pulling this out of memory, so someone can correct me if I'm wrong.
You mentioned earlier that you were using the Maildir format. Look in the /cur part of the mail folder. The file will end with "2,(flags)" where (flags) are:
Flag "P" (passed): the user has resent/forwarded/bounced this message to someone else. Flag "R" (replied): the user has replied to this message. Flag "S" (seen): the user has viewed this message, though perhaps he didn't read all the way through it. Flag "T" (trashed): the user has moved this message to the trash; the trash will be emptied by a later user action. Flag "D" (draft): the user considers this message a draft; toggled at user discretion. Flag "F" (flagged): user-defined flag; toggled at user discretion.
Willie
Copied some info from http://cr.yp.to/proto/maildir.html
On Thu, 2011-03-03 at 14:53 +0100, francwalter@gmx.net wrote:
In one account on my server all mails are unread all the time. If i set them as read in my client (IMAP with Mac Mail 4.4 or IMAP with Squirrelmail, it doesn’t matter) they seem to be checked as read for some minutes or less, but very soon they are unread again, so i guess, only my client thinks that they are read, but after the next check, the client reads again that they are unread.
Most likely one of your clients sets them unread for some reason. Have you tried shutting down all your IMAP clients and then using only e.g. Squirrelmail for a while?
Enabling http://wiki.dovecot.org/Plugins/MailLog and looking at the logs might show something useful too.
Now i don’t know where to look or change the “Has been read”-Flag in the maildir-directory. Is it in some file or where is it, the flag?
Like Willie said, it's part of the filename. You could also check if the file's ctime changes unexpectedly (i.e. it changes when filename changes = when flags change).
Am 04.03.2011 at 17:58 Timo Sirainen wrote:
Most likely one of your clients sets them unread for some reason. Have you tried shutting down all your IMAP clients and then using only e.g. Squirrelmail for a while?
That was it, thank you!!!
I used ShangMail, an online E-Mail-client for BlackBerry phone. Here i had my account as IMAP, and i guess the good old IMAP is not really working on shangmail. I deleted my account there and since yet no unread flag anymore!
Great!
Enabling http://wiki.dovecot.org/Plugins/MailLog and looking at the logs might show something useful too.
This wont be on Dovecot 1.0.10 as I read.
participants (4)
-
Charles Marcus
-
francwalter@gmx.net
-
Timo Sirainen
-
Willie Gillespie