Gnus development mailing list
 help / color / mirror / Atom feed
From: Jens <jens.schmidt001@arcor.de>
To: ding@gnus.org
Subject: Question regarding `gnus-agent-save-group-info'
Date: Tue, 8 Dec 2015 13:16:30 +0000 (UTC)	[thread overview]
Message-ID: <loom.20151208T140043-297@post.gmane.org> (raw)

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




             reply	other threads:[~2015-12-08 13:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-08 13:16 Jens [this message]
2016-02-06  6:33 ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=loom.20151208T140043-297@post.gmane.org \
    --to=jens.schmidt001@arcor.de \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).