Re: [Dovecot] STATUS command and total/read message count

2010-01-26 Thread Florian Effenberger
Hi Timo,

2010/1/25 Timo Sirainen t...@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


Re: [Dovecot] STATUS command and total/read message count

2010-01-25 Thread Timo Sirainen
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.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] STATUS command and total/read message count

2010-01-24 Thread Timo Sirainen
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.



signature.asc
Description: This is a digitally signed message part


Re: [Dovecot] STATUS command and total/read message count

2010-01-24 Thread Florian Effenberger
Hi Timo,

2010/1/24 Timo Sirainen t...@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