Gnus development mailing list
 help / color / mirror / Atom feed
* Question regarding `gnus-agent-save-group-info'
@ 2015-12-08 13:16 Jens
  2016-02-06  6:33 ` Lars Ingebrigtsen
  0 siblings, 1 reply; 2+ messages in thread
From: Jens @ 2015-12-08 13:16 UTC (permalink / raw)
  To: ding

Hi,

I have a minor inconvenience with agentized IMAP groups.  If I delete
articles out of these while being plugged, the max value of the IMAP group
active information drops.  However, the agent would not update its active
information to the new, lower value because of the following snippet from
`gnus-agent-save-group-info':

	  (insert (format "%S %d %d y\n" (intern group)
		  (max (or oactive-max (cdr active)) (cdr active))
		  (min (or oactive-min (car active)) (car active))))

As a result, when being unplugged, the group shows that it has unread
articles, which display as "undownloaded" articles in the group's summary
buffer.  Even though these articles do not actually exist on the IMAP server.

When I modify `gnus-agent-save-group-info' to always use the IMAP server
active information for the agent as well, everything works fine.

Why do you need the max/min approach in `gnus-agent-save-group-info'?  Why
not always set the agent active information to the active information of the
agentized group?

Jens




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

end of thread, other threads:[~2016-02-06  6:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-08 13:16 Question regarding `gnus-agent-save-group-info' Jens
2016-02-06  6:33 ` Lars 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).