After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 350500 - Please let scores expire N days from last use (not creation)
Please let scores expire N days from last use (not creation)
Status: RESOLVED OBSOLETE
Product: Pan
Classification: Other
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Charles Kerr
Pan QA Team
Depends on:
Blocks:
 
 
Reported: 2006-08-08 21:21 UTC by Søren Boll Overgaard
Modified: 2011-12-03 18:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Søren Boll Overgaard 2006-08-08 21:21:17 UTC
Hello,

A Debian user reported the following at http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=249898:

--- 8< ---

I've used a similar feature in MT-NW, and it's pretty nice --- the
filters (as they're called in MT-NW) stay around for as long as needed,
then delete themselves.

I'm finding that I have to edit pan's scorefile to extend the dates on
almost all of the scores. It'd be much nicer if it was 30 days after
last use ( = last match) rather than 30 days after creation.

--- 8< ---

I definitely think that this would be a nice-to-have®. I often find myself adding low scores to trolls that change aliases frequently, or only post for a limited amount of time. This feature would allow scores to remain in the score file only for as long as a given troll remained active, thus helping to reduce the size of the score file.
Comment 1 Charles Kerr 2006-08-08 21:28:54 UTC
I like this idea, but I'm not sure how to reconcile it with keeping
the same scorefile format that slrn and Xnews use.
Comment 2 Søren Boll Overgaard 2006-08-08 21:37:41 UTC
I am no expert on the format of the Score file, but from what I can discern from http://alcor.concordia.ca/topics/netnews/slrn/doc/score.html adding a specially formatted comment before each score should not be too hard?

Eg. a Pan generated Score entry could look something like:

%BOS
%Score created by Pan on Wed Apr  5 09:41:48 2006
%Score used by Pan on Yadda Yadda
[daimi.test]
Score:: =-9999
Expires: 5/5/2006
Subject: ^Summerschool$
%EOS

Or, alternately, an identifier could be stored, which references metadata (including the last time a score was used) stored elsewhere in XML, as:

%BOS
%Score created by Pan on Wed Apr  5 09:41:48 2006
%Pan Score Identifier: SomeGeneratedIdentifier
[daimi.test]
Score:: =-9999
Expires: 5/5/2006
Subject: ^Summerschool$
%EOS

Comment 3 Charles Kerr 2006-08-09 01:14:02 UTC
Not a bad idea, embedding it in the comments so that the 'live' parts
of the scorefile will be preserved.  Riffing off that idea, we could
actually position the comment on the Expires: line like this...

%BOS
%Score created by Pan on Wed Apr  5 09:41:48 2006
[daimi.test]
Score:: =-9999
Expires: 5/5/2006 % days-to-extend-on-hit: 30
Subject: ^Summerschool$
%EOS