[Dovecot] Marking all messages in folder as read doesn't work

Timo Sirainen tss at iki.fi
Sun Dec 3 12:42:44 UTC 2006

On Sun, 2006-12-03 at 10:07 +0100, John and Catherine Allen wrote:
> I'm seeing a new behaviour with my Dovecot setup which has me puzzled.
> I have a folder with 47000 spam messages, mostly small. There are 64 unread messages. This 
> folder is not receiving new deliveries, it's part of my archive of spam.
> If I do "mark folder read", the command appears to work, but a few minutes later there are 
> still 64 unread messages. This behaviour has been consistent over many attempts in the 
> past week.

You could check if the change ever even happened:

ls ~/Maildir/.spam/cur/|grep -v '.*:2,.*S'

(ie. if filename contains S it's seen)

If it shows that the files have never changed, you could check with
strace what happens:

strace -p <imap process pid> 2>log
grep rename log

My only guess is that the imap process doesn't have permissions to
rename the files.

BTW. Please don't create new threads by replying to existing messages.
It screws up threading since your message then contains In-Reply-To
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20061203/c5a99568/attachment.pgp 

More information about the dovecot mailing list