🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.admin.peering
Article #1600

Re: Newbie question

#1600
From: Julien ÉLIE
Date: Thu, 30 Mar 2023 17:11
34 lines
2633 bytes
Hi Eli,

> Another question:
> How can I delete all messages up to a certain date in a newsgroup immediately.
> The messages were received via pullnews, so the date received is the same for
> all messages.

When you say "up to a certain date", do you mean before or after?
If it is before, then just use expire.ctl and run news.daily so as to 
expire articles.
Verify that you do not use the "-p" option in the expireoverflags and 
flags options of the news.daily command.  (By default, arrival time is 
used, and "-p" switches to the actual date in Date header fields).


If it is after, then it is a bit more complicated...
Your history file in <pathdb> contains lines with several timestamps. 
You can find the storage tokens of articles arrived after March, 1st 
with the following commands:

% convdate -n '01 Mar 2023 00:00 +0000'
1677628800

% perl -ne 'chomp; our ($hash, $timestamps, $_) = split " "; my 
($arrived, $expires, $posted) = split("~", $timestamps); print "$_\n" if 
$_ and $arrived >= 1677628800' history

Pipe the result to "sm -r" to remove these articles.

-- 
Julien ÉLIE

« Les amis de la vérité sont ceux qui la cherchent, et non ceux qui se
   vantent de l'avoir trouvée. » (Condorcet)
Technical Details
Message-ID: <u04fru$gg7c$1@news.trigofacile.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
References: <sXMOL.4024495$MJk2.1098149@fx06.ams4> <GdATL.4242798$MJk2.3308545@fx06.ams4> <tvmmjn$m3f$1@nnrp.usenet.blueworldhosting.com> <1rCTL.2300230$US27.1150783@fx01.ams4>

Show Full Headers
Complete Article Headers
Message-ID: <u04fru$gg7c$1@news.trigofacile.com>
Subject: Re: Newbie question
Date: Thu, 30 Mar 2023 19:11:26 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <sXMOL.4024495$MJk2.1098149@fx06.ams4> <GdATL.4242798$MJk2.3308545@fx06.ams4> <tvmmjn$m3f$1@nnrp.usenet.blueworldhosting.com> <1rCTL.2300230$US27.1150783@fx01.ams4>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail
Newsgroups: news.admin.peering
Organization: Groupes francophones par TrigoFACILE
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 30 Mar 2023 17:11:26 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="san13-h02-176-143-2-105.dsl.sta.abo.bbox.fr:176.143.2.105"; logging-data="540908"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.9.0
Cancel-Lock: sha1:JLsyEvAwlCBPS82tyuoXKwgjVqE= sha256:g00BNTFdfzLC1lnhvP2XpKlt/V5ZKLtb+SVA4hQcDyM= sha1:qivC4UYB12/cqPxxnBHtl4kptZM= sha256:81JJ5v0Dyxts3+Je3X4rifT0BTncp5l5U+g3IwEpZf4=
In-Reply-To: <1rCTL.2300230$US27.1150783@fx01.ams4>