unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#20004: 25.0.50; nnimap should update unread counts from server
@ 2015-03-05  2:11 Eric Abrahamsen
  2017-01-25 21:33 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Abrahamsen @ 2015-03-05  2:11 UTC (permalink / raw)
  To: 20004


At some point in the Gnus usage cycle, nnimap servers should be updating
their read marks (and possibly other marks) from the IMAP server flags.
Right now, Gnus relies on its own read/unread marks, and will not query
the server for group flags unless you manually delete the "active"
parameter for a group, and force it to re-scan the group.

This means that, if you have two or more Gnus installations accessing
the same server, they will get out of whack with each other, each
effectively assuming that its marks are canonically correct.

It also means that, if you have misconfigurations elsewhere (ahem), and
funny things are happening with your server flags, Gnus won't be aware
of that, leading to drift between Gnus and the server.

I'm not sure of the correct solution. Some possibilities:

1. Refresh flags on startup only (ie call
   `gnus-get-unread-articles-in-group' with the "update" flag set to t).
   This would be light on resources, but could still lead to confusion
   if you've actually got multiple Gnusii open and operating at the same time.
2. Constant refresh: flags are refreshed every time Gnus is refreshed.
   This seems overly resource intensive, though probably there could be
   a guard that first compares unread counts, and only does the full
   refresh if they differ.
3. Don't store unread marks for IMAP groups at all; only rely on the
   server flags (!)


I'm happy to contribute to a solution, depending on what the right
approach might be.





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

* bug#20004: 25.0.50; nnimap should update unread counts from server
  2015-03-05  2:11 bug#20004: 25.0.50; nnimap should update unread counts from server Eric Abrahamsen
@ 2017-01-25 21:33 ` Lars Ingebrigtsen
  2017-01-26  7:04   ` Eric Abrahamsen
  0 siblings, 1 reply; 3+ messages in thread
From: Lars Ingebrigtsen @ 2017-01-25 21:33 UTC (permalink / raw)
  To: Eric Abrahamsen; +Cc: 20004

Eric Abrahamsen <eric@ericabrahamsen.net> writes:

> At some point in the Gnus usage cycle, nnimap servers should be updating
> their read marks (and possibly other marks) from the IMAP server flags.
> Right now, Gnus relies on its own read/unread marks, and will not query
> the server for group flags unless you manually delete the "active"
> parameter for a group, and force it to re-scan the group.

If you're talking to a modern IMAP server, then Gnus will issue QRESYNC
commands to the server and will get all new events that have happened.
This includes read/unread marks and all the rest.

If the server doesn't support that, there's not much that Gnus can do
without agressively re-requesting all the data on the server, and that's
going to be s-l-o-w.  So I don't think this is a bug.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





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

* bug#20004: 25.0.50; nnimap should update unread counts from server
  2017-01-25 21:33 ` Lars Ingebrigtsen
@ 2017-01-26  7:04   ` Eric Abrahamsen
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Abrahamsen @ 2017-01-26  7:04 UTC (permalink / raw)
  To: Lars Ingebrigtsen; +Cc: 20004


On 01/25/17 22:33 PM, Lars Ingebrigtsen wrote:
> Eric Abrahamsen <eric@ericabrahamsen.net> writes:
>
>> At some point in the Gnus usage cycle, nnimap servers should be updating
>> their read marks (and possibly other marks) from the IMAP server flags.
>> Right now, Gnus relies on its own read/unread marks, and will not query
>> the server for group flags unless you manually delete the "active"
>> parameter for a group, and force it to re-scan the group.
>
> If you're talking to a modern IMAP server, then Gnus will issue QRESYNC
> commands to the server and will get all new events that have happened.
> This includes read/unread marks and all the rest.
>
> If the server doesn't support that, there's not much that Gnus can do
> without agressively re-requesting all the data on the server, and that's
> going to be s-l-o-w.  So I don't think this is a bug.

This was almost certainly an early confusion on my part about how nnimap
works, thanks for closing.





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

end of thread, other threads:[~2017-01-26  7:04 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-05  2:11 bug#20004: 25.0.50; nnimap should update unread counts from server Eric Abrahamsen
2017-01-25 21:33 ` Lars Ingebrigtsen
2017-01-26  7:04   ` Eric Abrahamsen

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).