🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.admin.peering
Article #1653

Re: Renumber newsgroups by post date

#1653
From: Julien ÉLIE
Date: Sat, 29 Apr 2023 21:17
20 lines
2001 bytes
Hi Matija,

> - for each group, rename files so their numbers sequentially follow the
>    chronological order of `Date` headers in their content (you might need
>    to write a relatively simple script for that; I don't know if any exist
>    already)

FWIW, in <patharticles>, the dates can be obtained with something like:
   grep -m 1 '^Date: ' *
and the header field values converted to epoch with the convdate tool, 
like in:
   convdate -n 'Fri, 28 Apr 2023 15:11:26 +0200'


You'll also need updating the Xref header fields in articles.

-- 
Julien ÉLIE

« Farpaitement ! » (Obélix)
Technical Details
Message-ID: <u2k1gq$2jdog$2@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: <7Qb1M.3786652$nwq3.3523857@fx13.ams4> <20230423160822.Aq0OKbfG2jj0@sewer.dizum.com> <l8N1M.4640532$miq3.438385@fx02.ams4> <slrnu4nhfu.t0i.mnalis-news@leia.home.lan>

Show Full Headers
Complete Article Headers
Message-ID: <u2k1gq$2jdog$2@news.trigofacile.com>
Subject: Re: Renumber newsgroups by post date
Date: Sat, 29 Apr 2023 23:17:13 +0200
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <7Qb1M.3786652$nwq3.3523857@fx13.ams4> <20230423160822.Aq0OKbfG2jj0@sewer.dizum.com> <l8N1M.4640532$miq3.438385@fx02.ams4> <slrnu4nhfu.t0i.mnalis-news@leia.home.lan>
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: Sat, 29 Apr 2023 21:17:14 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="176-143-2-105.abo.bbox.fr:176.143.2.105"; logging-data="2733840"; 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.10.0
Cancel-Lock: sha1:sQnSy1kGmwRVdLBPHfD92TxNmEA= sha256:mG5g7HLSdzvtVyncS5W6k+H7prhCoWuLqgM8hi3YjA4= sha1:JBgLAHDafEFNUDxKnpJOGispu1g= sha256:ZS069uCR6/9VEvfeSkGOFTiT724S+Xz3I98X6JoqCD4=
In-Reply-To: <slrnu4nhfu.t0i.mnalis-news@leia.home.lan>