[Dovecot] STATUS command and total/read message count
Hello,
I'm running Dovecot 1.0.15 with Thunderbird 3.0.1. TB can query folders for messages in two ways: Either by using the STATUS command, or by opening the folder (don't know the respective IMAP commands, sorry...).
Querying via opening the folder is reliable, but via the STATUS command, only new/unread messages are shown. If I want to have the total number of (unread) mesages in a folder, I have to manually open it, so the headers are loaded. Is this a Dovecot issue, or a problem with Thunderbird?
In other words: Does the STATUS command only return new/unread messages, or can this be configured on the server side?
Thanks, Florian
On Sun, 2010-01-24 at 17:07 +0100, Florian Effenberger wrote:
Querying via opening the folder is reliable, but via the STATUS command, only new/unread messages are shown. If I want to have the total number of (unread) mesages in a folder, I have to manually open it, so the headers are loaded.
I don't understand. What's the difference between "new/unread" and "unread"? What does headers have to do with it?
In other words: Does the STATUS command only return new/unread messages, or can this be configured on the server side?
There's no configuration. STATUS can only return number of messages, messages without \Seen flag, number of messages with \Recent flag ("new messages arrived since last time mailbox was selected"), and some other less useful things.
Hi Timo,
2010/1/24 Timo Sirainen <tss@iki.fi>:
I don't understand. What's the difference between "new/unread" and "unread"? What does headers have to do with it?
In other words: Does the STATUS command only return new/unread messages, or can this be configured on the server side?
There's no configuration. STATUS can only return number of messages, messages without \Seen flag, number of messages with \Recent flag ("new messages arrived since last time mailbox was selected"), and some other less useful things.
the problem is the following: Thunderbird can show the number of new/unread messages in a folder, as well as a total number of messages in a folder. In Thunderbird 2.x, the latter worked with the infopane, in Thunderbird 3.x, you have to use the Extra Folder Columns extension.
When a new client is set up and launched for the first time, Thunderbird queries all folders using the STATUS command, unless mail.imap.use_status_for_biff is set to false.
Some folders have only read messages, others have only unread messages, and some other have read and unread messages. Thunderbird now only shows the number of unread messages in a folder when using the STATUS command. In order to get the total number of messages in one specific folder, I have to manually open it.
So, in short, Thunderbird doesn't seem to update the total number of messages in a folder using the STATUS command.
From your posting I take this is generally possible, so it is a Thunderbird problem - right? ;-)
Thanks, Florian
On Mon, 2010-01-25 at 08:25 +0100, Florian Effenberger wrote:
Some folders have only read messages, others have only unread messages, and some other have read and unread messages. Thunderbird now only shows the number of unread messages in a folder when using the STATUS command. In order to get the total number of messages in one specific folder, I have to manually open it.
So, in short, Thunderbird doesn't seem to update the total number of messages in a folder using the STATUS command.
From your posting I take this is generally possible, so it is a Thunderbird problem - right? ;-)
Right. STATUS command is capable of returning the total number of messages in a mailbox.
Hi Timo,
2010/1/25 Timo Sirainen <tss@iki.fi>:
Right. STATUS command is capable of returning the total number of messages in a mailbox.
thanks! Can problems with querying the total number of messages occur when mbox_dirty_syncs and mbox_lazy_writes are set to yes? Still running 1.0.15 here and trying to track down some problems with Thunderbird, that's why I am asking...
Florian
On Wed, 2010-01-27 at 13:21 -0500, Charles Marcus wrote:
On 2010/1/25, Timo Sirainen <tss@iki.fi> wrote:
Right. STATUS command is capable of returning the total number of messages in a mailbox.
Is STATUS command (or other IMAP command) able to determine the SIZE of a mailbox/,aildir (folder)?
Nope.
participants (3)
-
Charles Marcus
-
Florian Effenberger
-
Timo Sirainen