Article View: news.software.readers
Article #140265Re: [Xnews] Automating Article -> Add to score file -> Kill from here down
From: david moore
Date: Fri, 02 Jan 2004 20:43
Date: Fri, 02 Jan 2004 20:43
51 lines
3282 bytes
3282 bytes
"ยปQยซ" <boxcars@gmx.net> wrote in news:MrQ9463E7053955EitsmeitsQ@QsFQDN.dyndns.org: > david moore <david_a_moore@excite.com> wrote in ><news:bt212h$2j2nt$1@ID-191014.news.uni-berlin.de>: > >> In a perfect world, I'd like to setup Xnews to do the equivalent >> of "Article -> Add to score file -> Kill from here down" >> automatically but I don't think I can. If I'm missing some Xnews >> feature, please let me know. > > As I understand you, you want Xnews to automagically do this every > time it sees a message from the trolls/idiot, with no input required > from you. Unfortunately, that can't be done. AFAIK, the fastest way > to to it within Xnews is to assign a single keystroke to the scoring > dialog so that only three keys are needed to 'kill from here'. Yes, this is correct. I want to achieve this with no user input. >> Otherwise, I'm at the point of writing a Perl script to do this >> for me. I'd prefer to not re-invent the wheel so if anyone has >> done this already and would care to share, it would be most >> appreciated. If I end up doing this myself and there's enough >> interest, I'll post my script. > > Such a thing has often been requested here, though I haven't noticed > many requests lately. You'd have to have headers stored and point > the script at them in storage, no? I wasn't planning on using storage. My initial plan was to: * Read a .ini file with the newsgroup/troll_list pairings * Read the .newsrc file to determine where to start in each group. * Use News::NNTPClient to loop through each group, grabbing each new From header, if a troll match then grab the Reference header and add it to the group array. * Open score.ini and add each reference in the group array to the appropriate group section. It's not terribly efficient. I'd have to run it right before using Xnews to maximize the hits. Issues like redundent entries and multiple entries from one thread exist. My score file could grow out of control. I'd probably want to add configurable expiration dates, etc. I've already written a script that basically does steps 2 & 3 but as I wrote earlier, I'd rather not do all this work if someone else already has. :-)
Technical Details
Message-ID:
<bt4l5b$3a20s$1@ID-191014.news.uni-berlin.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!news2.euro.net!newsfeed.vmunix.org!fu-berlin.de!uni-berlin.de!216.131.220.170!not-for-mailReferences:
<bt212h$2j2nt$1@ID-191014.news.uni-berlin.de> <MrQ9463E7053955EitsmeitsQ@QsFQDN.dyndns.org>Show Full Headers
Complete Article Headers
Message-ID: <bt4l5b$3a20s$1@ID-191014.news.uni-berlin.de> Subject: Re: [Xnews] Automating Article -> Add to score file -> Kill from here down Date: Fri, 02 Jan 2004 20:43:24 +0000 From: david moore <david_a_moore@excite.com> References: <bt212h$2j2nt$1@ID-191014.news.uni-berlin.de> <MrQ9463E7053955EitsmeitsQ@QsFQDN.dyndns.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!border1.nntp.ash.giganews.com!firehose2!nntp4!intern1.nntp.aus1.giganews.com!border1.nntp.aus1.giganews.com!nntp.giganews.com!news2.euro.net!newsfeed.vmunix.org!fu-berlin.de!uni-berlin.de!216.131.220.170!not-for-mail Newsgroups: news.software.readers Lines: 51 NNTP-Posting-Host: 216.131.220.170 X-Trace: news.uni-berlin.de 1073076204 3475484 216.131.220.170 ([191014]) User-Agent: Xnews/5.04.25