Article View: news.software.readers
Article #24481Re: Scoring by date in slrn
From: John E. Davis
Date: Sat, 27 Jul 1996 00:00
Date: Sat, 27 Jul 1996 00:00
62 lines
2340 bytes
2340 bytes
On 27 Jul 1996 15:31:30 GMT, Dr Ivan D Reid, muSR Facility <reid@psi.ch>
wrote:
: Is it possible to score by date in slrn? Our news-server was down
Yes. Apply the patch which I have attached to this message.
: [rec.*]
: Score: -9999
: Expires: 14-8-1996
: Date: 15
:
: I still see messages from 15 July in rec.motorcycles. Is this not possible,
This score will only kill articles with `15' in the date field. You
may want to use something such as:
[rec.*]
Score: -9999
Expires: 14-8-1996
Date: \<[01]?[0-9]\>
Here is the patch to be applied to score.c:
--- src/slrn/src/score.c~ Wed Jul 24 01:18:20 1996
+++ src/slrn/src/score.c Sat Jul 27 15:57:49 1996
@@ -49,6 +49,7 @@
#define SCORE_REFERENCES 5
#define SCORE_LINES 6
#define SCORE_MESSAGE_ID 7
+#define SCORE_DATE 8
/* generic requires extra server interaction */
#define SCORE_GENERIC 16
unsigned int flags;
@@ -166,6 +167,10 @@
s = h->from;
break;
+ case SCORE_DATE:
+ s = h->date;
+ break;
+
case SCORE_MESSAGE_ID:
s = h->msgid;
break;
@@ -872,6 +877,8 @@
add_group_regexp (pst, lp + 10, lp, SCORE_REFERENCES, not_flag);
else if (!strncmp ((char *)lp, "Lines:", 6))
add_group_regexp (pst, lp + 5, lp, SCORE_LINES, not_flag);
+ else if (!strncmp ((char *)lp, "Date:", 5))
+ add_group_regexp (pst, lp + 5, lp, SCORE_DATE, not_flag);
else if (!strncmp ((char *)lp, "Message-Id:", 11))
add_group_regexp (pst, lp + 10, lp, SCORE_MESSAGE_ID, not_flag);
else
--
John E. Davis Center for Space Research/AXAF Science Center
617-258-8119 MIT 37-662c, Cambridge, MA 02139
http://space.mit.edu/~davis
Technical Details
Message-ID:
<slrn4vktl0.qlb.davis@aluche.mit.edu>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mailReferences:
<slrn4vkkik.g800l1.reid@PSW086.PSI.CH>Show Full Headers
Complete Article Headers
Message-ID: <slrn4vktl0.qlb.davis@aluche.mit.edu> Subject: Re: Scoring by date in slrn Date: Sat, 27 Jul 1996 00:00:00 +0000 From: davis@space.mit.edu (John E. Davis) References: <slrn4vkkik.g800l1.reid@PSW086.PSI.CH> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 170465176 Organization: Center for Space Research Reply-to: davis@space.mit.edu Newsgroups: news.software.readers