Gnus development mailing list
 help / color / mirror / Atom feed
From: Kevin Greiner <kgreiner@xpediantsolutions.com>
Subject: Re: New agent code
Date: Wed, 27 Nov 2002 23:51:07 -0600	[thread overview]
Message-ID: <3DE5AECB.3000008@xpediantsolutions.com> (raw)
In-Reply-To: <84znruitvu.fsf@lucy.cs.uni-dortmund.de>



Kai Großjohann wrote:

>Kevin Greiner <kgreiner@xpediantsolutions.com> writes:
>
>  
>
>>The intended behavior is as follows:
>>If an article was fetched into the agent's cache, then the article's
>>header will be removed from the overview at the same time as the
>>article is expired.
>>If an article was never fetched, then the article's header will be
>>removed from the overview if the article is marked as read but not
>>marked as ticked nor dormant.
>>If an article is in the overview, but not in the agentview, remove it
>>from the overview.
>>
>>The first rule is probably obvious.  The second rule exists because
>>gnus-agent doesn't currently keep a timestamp on when a header was
>>fetched.  As a result, I can't expire just a header using
>>gnus-agent-expire-days.  The third rule cleans up an overview that has
>>gotten out-of-sync with its agentview.
>>    
>>
>
>Does the rest of the expiry code go by the fetched date or by the
>article date?
>
>Normal (mail) expiry also confuses these two times (date header of
>message; timestamp of nnml file on disk; time when user hits E -- Kai
>can't cound).  So maybe it's not so bad when the agent does the
>same.
>
>But OTOH, if the articles are expired by elapsed time since
>fetching and the headers are expired by elapsed time since their
>date, that would be strange.
>
>Hm.
>
>  
>
Actually, there is no elapse time on the headers.  If you fetch an 
article then the article and header are expired after the elapse time 
since fetching.  If you have just the header, it can be expired as soon 
as it has been read.  My thoughts were that you would only expire a 
group when recovering disk space outweighed the deletion of read 
headers.  Of course, those headers could still be recovered by 
refetching the headers from the server.

I just took a look back at the gnus-agent-expire prior to my changes. 
 The code is rather convoluted.  It is quite possible that NOV entries 
were only expirable if you had first fetched the article. It appears 
that if you had fetched the article AND the expiration elapse time was 
reached, the NOV entries would be deleted when any of the following were 
true.

    1) the article ID preceded the current active range
    2) gnus-agent-expire-all is set
    3) The article is read and not marked as ticked or dormant.

I suspect that this behavior is probably close to being acceptable. 
 From what I've seen in the preceding posts, some people are seeing a 
different behavior.  One that is not intended.  I'm just going to need 
more information before I can nail down what is wrong.

BTW,  I'm going to be offline until the 30th or 31st so please be 
patient with me.

Kevin





  reply	other threads:[~2002-11-28  5:51 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-25  2:13 Henrik Enberg
2002-11-25  2:42 ` Henrik Enberg
2002-11-25  3:12   ` Henrik Enberg
2002-11-25  7:31     ` Kai Großjohann
2002-11-26  3:17       ` Kevin Greiner
2002-11-26  7:30         ` Kai Großjohann
2002-11-27 10:47           ` Denis Yakovlev
2002-11-27 17:52             ` Kevin Greiner
2002-11-27 19:46               ` Denis Yakovlev
2002-11-27 21:29               ` Kai Großjohann
2002-11-28  5:51                 ` Kevin Greiner [this message]
2002-11-28 18:24                   ` Denis Yakovlev
2002-11-25  3:54 ` Katsumi Yamaoka
2002-11-25  7:25   ` Kai Großjohann
2002-11-25 20:11     ` David S Goldberg
2002-11-25 20:32       ` Kai Großjohann
2002-11-26 14:43         ` David S Goldberg
2002-11-26 15:11           ` Kai Großjohann
2002-12-03 14:18             ` David S Goldberg
2002-11-25  7:30 ` Kai Großjohann
2002-11-25 16:58   ` Henrik Enberg
2002-11-25 20:17     ` Kai Großjohann

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=3DE5AECB.3000008@xpediantsolutions.com \
    --to=kgreiner@xpediantsolutions.com \
    /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).