Gnus development mailing list
 help / color / mirror / Atom feed
From: Lars Ingebrigtsen <larsi@gnus.org>
To: Jens <jens.schmidt001@arcor.de>
Cc: ding@gnus.org
Subject: Re: Question regarding `gnus-agent-save-group-info'
Date: Sat, 06 Feb 2016 17:33:06 +1100	[thread overview]
Message-ID: <87lh6ynyal.fsf@gnus.org> (raw)
In-Reply-To: <loom.20151208T140043-297@post.gmane.org> (Jens's message of "Tue, 8 Dec 2015 13:16:30 +0000 (UTC)")

Jens <jens.schmidt001@arcor.de> writes:

> 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?

I think the idea is that the Agent is a store of cached articles, and
even if the articles have expired from the server, they should still be
available in Gnus.  For instance, if you're reading from a news server
with short expiry, the min number will increase on the server, but it
shouldn't increase in Gnus until you expire the messages from the
Agent...

For IMAP this may not be quite what we want, though.  But what do we
want?  :-)

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



      reply	other threads:[~2016-02-06  6:33 UTC|newest]

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

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=87lh6ynyal.fsf@gnus.org \
    --to=larsi@gnus.org \
    --cc=ding@gnus.org \
    --cc=jens.schmidt001@arcor.de \
    /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).