Bug#278617: balsa: wrong mailbox statistics in left pane

Simon Brandmair Simon Brandmair <sbrandmair@gmx.net>, 278617@bugs.debian.org
Thu, 04 Nov 2004 16:28:16 +0000


Hi Andrew!

On 04.11.2004 14:47 (Thursday), Andrew Lau wrote:
> On Thu, Oct 28, 2004 at 10:47:02AM +0200, Simon Brandmair wrote:
>
>>   Balsa displays the mailbox statistics in the left pane wrong. To    =20
>> reproduce:  Compose new mail, save it, save it again. Now the message co=
unt =20
>> increased  by  2 (for every save), although there is only one mail in th=
e =20
>> draft folder.
>> The statistics are also incorrect when you move mails to
>> different  folders.  In the folder you move a mail to the message count =
is =20
>> correctly increased  by  1. But the message count of the folder from whe=
re =20
>> the mail got moved is  not  decreased by 1.
>=20
>=20
> I can't reproduce this at all with local mboxes. Are these counts for
> IMAP mailboxes?
>

No, they are actually for local mboxes.

I did some more testing and figured some stuff out:
1. The problem seems to be connected to the way balsa handles mails marked =
as =20
deleted. If I got it right, a message is deleted not before the mailbox is =
=20
closed or unused for a while (can be check in preferences). In the meanwhil=
e a =20
messages is only marked as "deleted" and can optionally be hidden.
2. Saving a composed mail results in saving the mail in the draftbox-folder=
. =20
If a previous version of the mail already exists in the draftbox, it is =20
deleted. Actually, it is not deleted, but marked as deleted.
3. Conclusion: Balsa displays in the message count also the messages which =
are =20
marked as "deleted". Maybe this is not a bug, since that message really sti=
ll =20
is the mailbox. On the other side it is very irritating, espacially when "H=
ide =20
messages marked as deleted" is checked.
4. This would also explain why moving a mail does not decrease the message =
=20
count immediatly, since the moved message is only marked "deleted".
5. I can reproduce this behaviour here any time, with different users and e=
ven =20
new balsa configuration files.

I hope this helps a little bit.

Simon