Re: odd display behavior

Pawel Salek via balsa-list <[email protected]> Tue, 26 Jan 2021 09:36:21 +0100
Newsgroups gmane.comp.gnome.apps.balsa
Message-ID <CAD8QL+TLNBqS-HXBSkVu6tu-tTN=-9SPV1ZgyTS6yTcAPXSjjQ@mail.gmail.com>
--===============3838435349173425360==
Content-Type: multipart/alternative; boundary="000000000000342cf405b9c98d76"

--000000000000342cf405b9c98d76
Content-Type: text/plain; charset="UTF-8"

Hi Jack,

balsa saves the last seen total and unread counts in
src/save-restore.c:config_save_mailbox_view. It saves the last mod time
too, to refresh the counts if needed. It seems that in your case, it has
shown stale data read from config, instead of refreshing it correctly from
the actual mailbox data. I admit I haven't verified the sequence of events
that would lead to this behaviour.

Pawel

On Thu, Jan 21, 2021 at 9:52 PM Jack via balsa-list <[email protected]>
wrote:

> Happy New Year to all.
>
> I was just reviewing old mail in a bunch of MailDir folders all under a
> directory  I use to track different sites in a project with which I am
> involved.  In particular, one showed 0 unread but 20 total messages.
> Opening that folder, it showed no messages, and looking in the actual
> folder on disk, it also showed no messages.  After lots of playing, I
> simply deleted the folder, but in Balsa and on the disk.  I recreated
> the MailDir mailbox, and Balsa showed blanks (not explicit 0's) for
> number of messages.  Once I actually put a message in the mailbox, and
> then deleted it, it correctly showed 0 total and unread messages.
>
> Clearly a low priority, but I would think if there are no messages in
> either cur, new, or tmp subfolders of a MailDir folder, that would be
> taken and displayed as 0 messages, not just left blank.
>
> Can anyone confirm, and should I open an issue?
>
> Thanks.
>
> Jack
> _______________________________________________
> balsa-list mailing list
> [email protected]
> https://mail.gnome.org/mailman/listinfo/balsa-list
>

--000000000000342cf405b9c98d76
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi Jack,</div><div><br></div><div>balsa saves the las=
t seen total and unread counts in src/save-restore.c:config_save_mailbox_vi=
ew. It saves the last mod time too, to refresh the counts if needed. It see=
ms that in your case, it has shown stale data read from config, instead of =
refreshing it correctly from the actual mailbox data. I admit I haven&#39;t=
 verified the sequence of events that would lead to this behaviour.</div><d=
iv><br></div><div>Pawel<br></div></div><br><div class=3D"gmail_quote"><div =
dir=3D"ltr" class=3D"gmail_attr">On Thu, Jan 21, 2021 at 9:52 PM Jack via b=
alsa-list &lt;<a href=3D"mailto:[email protected]">[email protected]<=
/a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0=
px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">H=
appy New Year to all.<br>
<br>
I was just reviewing old mail in a bunch of MailDir folders all under a=C2=
=A0 <br>
directory=C2=A0 I use to track different sites in a project with which I am=
=C2=A0 <br>
involved.=C2=A0 In particular, one showed 0 unread but 20 total messages.=
=C2=A0 =C2=A0<br>
Opening that folder, it showed no messages, and looking in the actual=C2=A0=
 <br>
folder on disk, it also showed no messages.=C2=A0 After lots of playing, I=
=C2=A0 <br>
simply deleted the folder, but in Balsa and on the disk.=C2=A0 I recreated=
=C2=A0 <br>
the MailDir mailbox, and Balsa showed blanks (not explicit 0&#39;s) for=C2=
=A0 <br>
number of messages.=C2=A0 Once I actually put a message in the mailbox, and=
=C2=A0 <br>
then deleted it, it correctly showed 0 total and unread messages.<br>
<br>
Clearly a low priority, but I would think if there are no messages in=C2=A0=
 <br>
either cur, new, or tmp subfolders of a MailDir folder, that would be=C2=A0=
 <br>
taken and displayed as 0 messages, not just left blank.<br>
<br>
Can anyone confirm, and should I open an issue?<br>
<br>
Thanks.<br>
<br>
Jack<br>
_______________________________________________<br>
balsa-list mailing list<br>
<a href=3D"mailto:[email protected]" target=3D"_blank">balsa-list@gnome.=
org</a><br>
<a href=3D"https://mail.gnome.org/mailman/listinfo/balsa-list" rel=3D"noref=
errer" target=3D"_blank">https://mail.gnome.org/mailman/listinfo/balsa-list=
</a><br>
</blockquote></div>

--000000000000342cf405b9c98d76--

--===============3838435349173425360==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
balsa-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/balsa-list

--===============3838435349173425360==--