Article View: news.software.nntp
Article #89515Re: Renumber articles by posting date?
From: Julien ÉLIE
Date: Sat, 06 Aug 2022 19:34
Date: Sat, 06 Aug 2022 19:34
36 lines
2546 bytes
2546 bytes
Hi Jesse,
> Is there a way one can renumber articles contained on a INN tradspool in
> chronological order?
>
> I've been thinking that INN stores the posting date as one of the values in
> the history file, there may be some way to do this, perhaps not in place, but
> I'm not sure how to sort the input for innxmit.
Exactly!
The third timestamp in the history file (1632832725 in the example
below) is the posting time.
[8FEB593A03B03416C6AD1CED669BC442] 1632832728~-~1632832725
@030346523100000000000000002800000001@
I would suggest to sort the history file with that field, and keep the
token in the output
sort -t '~' -k3n | cut -f 3 < history > tokens.sorted
will do that I think.
You'll obtain an ordered list of article storage tokens by posting time.
This file is a suitable entry for innxmit. If present in
<pathoutgoing>, then run "innxmit your.news.server tokens.sorted" and
they will be fed to your new news server in the expected order.
--
Julien ÉLIE
« – Alors j'ai eu une idée géniale : ramener à César un des Gaulois
irréductibles de la région !
– Mais, préfet, ces Gaulois irréductibles ont un grand défaut !
– Ah ? Lequel ?
– C'est qu'ils sont irréductibles justement ! » (Astérix)
Technical Details
Message-ID:
<tcmfnv$35klc$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-mailReferences:
<0745151644.8be5251d@dont-email.me>Show Full Headers
Complete Article Headers
Message-ID: <tcmfnv$35klc$1@news.trigofacile.com> Subject: Re: Renumber articles by posting date? Date: Sat, 6 Aug 2022 21:34:22 +0200 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <0745151644.8be5251d@dont-email.me> 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.software.nntp 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, 6 Aug 2022 19:34:23 -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="3330732"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Cancel-Lock: sha1:EJxYgLUgvMfT6Bh+ZrEIwsq96mk= sha256:ZU8GXhPc7TBcZvA6SLd5y01CalbkrSos0Z4BhqXqZ0A= sha1:Wj6QxFEyR2HMUcZIhuazabFWHi8= sha256:8wJo1EvQ1GCynnUbeJJpJANfzNa+bHiGQanGkTEJAK4= In-Reply-To: <0745151644.8be5251d@dont-email.me>