Gnus development mailing list
 help / color / mirror / Atom feed
* nnimap unread count broken again
@ 2010-10-18 10:05 Frank Schmitt
  2010-10-18 10:36 ` Steinar Bang
  2010-10-18 19:25 ` Lars Magne Ingebrigtsen
  0 siblings, 2 replies; 14+ messages in thread
From: Frank Schmitt @ 2010-10-18 10:05 UTC (permalink / raw)
  To: ding

Hello,

After Lars's rewrite of nnimap the problem that reading IMAP messages from
several Gnus instances caused wrong unread counts was fixed. However,
now it is there again and even worse then with the pre-Lars-nnimap.

If I get a new message, read it in Gnus A, then hit g in Gnus B, the
message is still unread. Even if I enter the group, the message is shown
as unread (at this point the old nnimap got it right at least). The
only way to get correct unread state and ticks is saying M-g on all nnimap
groups.

I think this problem was mentioned in previous messages already, so
before I start git bisecting or something: Is it already worked on?
The server in question is a dovecot BTW.

-- 
Have you ever considered how much text can fit in eighty columns?  Given that a
signature typically contains up to four lines of text, this space allows you to
attach a tremendous amount of valuable information to your messages.  Seize the
opportunity and don't waste your signature on bullshit that nobody cares about.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: nnimap unread count broken again
  2010-10-18 10:05 nnimap unread count broken again Frank Schmitt
@ 2010-10-18 10:36 ` Steinar Bang
  2010-10-18 10:47   ` Frank Schmitt
  2010-10-18 19:25 ` Lars Magne Ingebrigtsen
  1 sibling, 1 reply; 14+ messages in thread
From: Steinar Bang @ 2010-10-18 10:36 UTC (permalink / raw)
  To: ding

>>>>> Frank Schmitt <ich@frank-schmitt.net>:

> If I get a new message, read it in Gnus A, then hit g in Gnus B, the
> message is still unread. Even if I enter the group, the message is shown
> as unread (at this point the old nnimap got it right at least). The
> only way to get correct unread state and ticks is saying M-g on all nnimap
> groups.

> I think this problem was mentioned in previous messages already, so
> before I start git bisecting or something: Is it already worked on?
> The server in question is a dovecot BTW.

If you M-g all groups on all gnusen, and save the .newsrc.eld file on
the gnusen afterwards, it should eventually stabilize.

At least it does for me.

Note: I'm not running the gnus instaces simultanously.  Just one at a
time.






^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: nnimap unread count broken again
  2010-10-18 10:36 ` Steinar Bang
@ 2010-10-18 10:47   ` Frank Schmitt
  2010-10-18 11:01     ` Steinar Bang
  0 siblings, 1 reply; 14+ messages in thread
From: Frank Schmitt @ 2010-10-18 10:47 UTC (permalink / raw)
  To: ding

Steinar Bang <sb@dod.no> writes:

>>>>>> Frank Schmitt <ich@frank-schmitt.net>:
>
>> If I get a new message, read it in Gnus A, then hit g in Gnus B, the
>> message is still unread. Even if I enter the group, the message is shown
>> as unread (at this point the old nnimap got it right at least). The
>> only way to get correct unread state and ticks is saying M-g on all nnimap
>> groups.
>
>> I think this problem was mentioned in previous messages already, so
>> before I start git bisecting or something: Is it already worked on?
>> The server in question is a dovecot BTW.
>
> If you M-g all groups on all gnusen, and save the .newsrc.eld file on
> the gnusen afterwards, it should eventually stabilize.
>
> At least it does for me.

Hmm. Isn't this removing symptoms instead of curing the disease?

-- 
Have you ever considered how much text can fit in eighty columns?  Given that a
signature typically contains up to four lines of text, this space allows you to
attach a tremendous amount of valuable information to your messages.  Seize the
opportunity and don't waste your signature on bullshit that nobody cares about.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: nnimap unread count broken again
  2010-10-18 10:47   ` Frank Schmitt
@ 2010-10-18 11:01     ` Steinar Bang
  2010-10-18 16:42       ` Dave Goldberg
  0 siblings, 1 reply; 14+ messages in thread
From: Steinar Bang @ 2010-10-18 11:01 UTC (permalink / raw)
  To: ding

>>>>> Frank Schmitt <ich@frank-schmitt.net>:

> Hmm. Isn't this removing symptoms instead of curing the disease?

I presume that if you start new gnusen with clean .newsrc.eld files, and
start subscribing to the groups in question you will never see the
issue...? 

The way I understood it, what you're seeing is caused by the .newsrc.eld
files being out of sync, and M-g'ing the group is a way of synching
them.

Once they are synched you shouldn't have the issue.

Again, the way I've understood it, this is a result of the way QRESYNC
implementation tries to keep the network traffic to a minimum (and
thereby the speed to a maximum).




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: nnimap unread count broken again
  2010-10-18 11:01     ` Steinar Bang
@ 2010-10-18 16:42       ` Dave Goldberg
  2010-10-18 19:55         ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Dave Goldberg @ 2010-10-18 16:42 UTC (permalink / raw)
  To: ding


>>>>> Frank Schmitt <ich@frank-schmitt.net>:
>> Hmm. Isn't this removing symptoms instead of curing the disease?

> I presume that if you start new gnusen with clean .newsrc.eld files, and
> start subscribing to the groups in question you will never see the
> issue...? 

> The way I understood it, what you're seeing is caused by the .newsrc.eld
> files being out of sync, and M-g'ing the group is a way of synching
> them.

> Once they are synched you shouldn't have the issue.

> Again, the way I've understood it, this is a result of the way QRESYNC
> implementation tries to keep the network traffic to a minimum (and
> thereby the speed to a maximum).

I only use one instance of Gnus, and no, the count never resync's by running M-g on the group line.  I've sent Lars (directly per his instruction due to the size) the traces I got through debugging and hopefully that will help to resolve the problem.  Can say for certain that James Cloos is correct that the count has gone back to being determined by subtracting the smallest UID number from the highest.  On my cyrus server this actually works because the UIDs are consecutive.  On Exchange the numbers can be quite bizarre (a group with two unread showed over 100 in the Group buffer).  As I've noted in earlier posts, watching the IMAP traffic, the server is clearly providing the correct numbers; Gnus is no longer doing the right thing with them as it did up until a week or so ago.  I've tried
  to look at git bisect per someone's suggestion but am sufficiently unfamiliar with git that I've been unable to get anywhere.

Thanks,
-- 
Dave Goldberg
david.goldberg6@verizon.net



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: nnimap unread count broken again
  2010-10-18 10:05 nnimap unread count broken again Frank Schmitt
  2010-10-18 10:36 ` Steinar Bang
@ 2010-10-18 19:25 ` Lars Magne Ingebrigtsen
  2010-10-18 19:57   ` Frank Schmitt
  1 sibling, 1 reply; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-18 19:25 UTC (permalink / raw)
  To: ding

Frank Schmitt <ich@frank-schmitt.net> writes:

> I think this problem was mentioned in previous messages already, so
> before I start git bisecting or something: Is it already worked on?
> The server in question is a dovecot BTW.

Is this a Dovecot server that supports QRESYNC?

I haven't yet been able to figure out what's going on, or reproduce the
bug, so I welcome all help in this area.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: nnimap unread count broken again
  2010-10-18 16:42       ` Dave Goldberg
@ 2010-10-18 19:55         ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-18 19:55 UTC (permalink / raw)
  To: ding

Using Dave's data I was finally able to debug this.  I think it's all
due to the read-only makeover.  It refused to update group that didn't
have \* in PERMANENT-FLAGS.  I've now reworked that code, so it should
probably be more correct now.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: nnimap unread count broken again
  2010-10-18 19:25 ` Lars Magne Ingebrigtsen
@ 2010-10-18 19:57   ` Frank Schmitt
  2010-10-18 20:01     ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Frank Schmitt @ 2010-10-18 19:57 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Frank Schmitt <ich@frank-schmitt.net> writes:
>
>> I think this problem was mentioned in previous messages already, so
>> before I start git bisecting or something: Is it already worked on?
>> The server in question is a dovecot BTW.
>
> Is this a Dovecot server that supports QRESYNC?
>
> I haven't yet been able to figure out what's going on, or reproduce the
> bug, so I welcome all help in this area.

Hmm. I don't know. It says:

. CAPABILITY
* CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND
  UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS
. OK Capability completed.

I can give you a test account on this server if you want.

-- 
Have you ever considered how much text can fit in eighty columns?  Given that a
signature typically contains up to four lines of text, this space allows you to
attach a tremendous amount of valuable information to your messages.  Seize the
opportunity and don't waste your signature on bullshit that nobody cares about.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: nnimap unread count broken again
  2010-10-18 19:57   ` Frank Schmitt
@ 2010-10-18 20:01     ` Lars Magne Ingebrigtsen
  2010-10-18 20:02       ` Lars Magne Ingebrigtsen
  0 siblings, 1 reply; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-18 20:01 UTC (permalink / raw)
  To: ding

Frank Schmitt <ich@frank-schmitt.net> writes:

> Hmm. I don't know. It says:
>
> . CAPABILITY
> * CAPABILITY IMAP4rev1 SASL-IR SORT THREAD=REFERENCES MULTIAPPEND
>   UNSELECT LITERAL+ IDLE CHILDREN NAMESPACE LOGIN-REFERRALS
> . OK Capability completed.

Without QRESYNC.  But try the fix I just pushed out.  It fixed the test
case I got from Dan.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: nnimap unread count broken again
  2010-10-18 20:01     ` Lars Magne Ingebrigtsen
@ 2010-10-18 20:02       ` Lars Magne Ingebrigtsen
  2010-10-18 20:13         ` Frank Schmitt
                           ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-18 20:02 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Without QRESYNC.  But try the fix I just pushed out.  It fixed the test
> case I got from Dan.

Dave.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: nnimap unread count broken again
  2010-10-18 20:02       ` Lars Magne Ingebrigtsen
@ 2010-10-18 20:13         ` Frank Schmitt
  2010-10-18 21:02         ` Dave Goldberg
  2010-10-21 11:20         ` James Cloos
  2 siblings, 0 replies; 14+ messages in thread
From: Frank Schmitt @ 2010-10-18 20:13 UTC (permalink / raw)
  To: ding

Lars Magne Ingebrigtsen <larsi@gnus.org> writes:

> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>
>> Without QRESYNC.  But try the fix I just pushed out.  It fixed the test
>> case I got from Dan.
>
> Dave.

Yes, seems to be fixed for me, too. Thanks.

-- 
Have you ever considered how much text can fit in eighty columns?  Given that a
signature typically contains up to four lines of text, this space allows you to
attach a tremendous amount of valuable information to your messages.  Seize the
opportunity and don't waste your signature on bullshit that nobody cares about.




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: nnimap unread count broken again
  2010-10-18 20:02       ` Lars Magne Ingebrigtsen
  2010-10-18 20:13         ` Frank Schmitt
@ 2010-10-18 21:02         ` Dave Goldberg
  2010-10-21 11:20         ` James Cloos
  2 siblings, 0 replies; 14+ messages in thread
From: Dave Goldberg @ 2010-10-18 21:02 UTC (permalink / raw)
  To: ding


> Lars Magne Ingebrigtsen <larsi@gnus.org> writes:
>> Without QRESYNC.  But try the fix I just pushed out.  It fixed the test
>> case I got from Dan.

> Dave.

Confirm it works for me again now.

Thanks,

-- 
Dave Goldberg
david.goldberg6@verizon.net



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: nnimap unread count broken again
  2010-10-18 20:02       ` Lars Magne Ingebrigtsen
  2010-10-18 20:13         ` Frank Schmitt
  2010-10-18 21:02         ` Dave Goldberg
@ 2010-10-21 11:20         ` James Cloos
  2010-10-21 16:01           ` Lars Magne Ingebrigtsen
  2 siblings, 1 reply; 14+ messages in thread
From: James Cloos @ 2010-10-21 11:20 UTC (permalink / raw)
  To: ding

I seem to have lost the article I wanted to reply to, but this is in the
right thread....

The article counts seem to be correct, now, after a M-g, but not after g.

I do make frequent use of the cache to backup stuff which is interesting;
might that interfere with the unread counts?

-JimC
-- 
James Cloos <cloos@jhcloos.com>         OpenPGP: 1024D/ED7DAEA6



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: nnimap unread count broken again
  2010-10-21 11:20         ` James Cloos
@ 2010-10-21 16:01           ` Lars Magne Ingebrigtsen
  0 siblings, 0 replies; 14+ messages in thread
From: Lars Magne Ingebrigtsen @ 2010-10-21 16:01 UTC (permalink / raw)
  To: ding

James Cloos <cloos@jhcloos.com> writes:

> I seem to have lost the article I wanted to reply to, but this is in the
> right thread....
>
> The article counts seem to be correct, now, after a M-g, but not after g.
>
> I do make frequent use of the cache to backup stuff which is interesting;
> might that interfere with the unread counts?

It might.  The interactions between the backends, the Agent and the
cache are kinda hairy.

But I've cached a few messages in a few nnimap groups, and it seems to
work OK for me.

-- 
(domestic pets only, the antidote for overdose, milk.)
  larsi@gnus.org * Lars Magne Ingebrigtsen




^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2010-10-21 16:01 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-18 10:05 nnimap unread count broken again Frank Schmitt
2010-10-18 10:36 ` Steinar Bang
2010-10-18 10:47   ` Frank Schmitt
2010-10-18 11:01     ` Steinar Bang
2010-10-18 16:42       ` Dave Goldberg
2010-10-18 19:55         ` Lars Magne Ingebrigtsen
2010-10-18 19:25 ` Lars Magne Ingebrigtsen
2010-10-18 19:57   ` Frank Schmitt
2010-10-18 20:01     ` Lars Magne Ingebrigtsen
2010-10-18 20:02       ` Lars Magne Ingebrigtsen
2010-10-18 20:13         ` Frank Schmitt
2010-10-18 21:02         ` Dave Goldberg
2010-10-21 11:20         ` James Cloos
2010-10-21 16:01           ` Lars Magne Ingebrigtsen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).