🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #60843

Re: Migrating from Agent to Xnews

#60843
From: Luu Tran
Date: Sat, 22 Apr 2000 00:00
44 lines
2338 bytes
ROT13=Tbmb@fbpvbybtvfg.pbz (Gozo) wrote in
<qM0M4.6690$q8.11485617@news-east.usenetserver.com>: 

>
>Yep. I tried similar procedure through the Folder Windows, but somehow
>it doesn't work. Actually Xnews *erase* the content of the given *.mbx
>file to zero! I tried different procedures (including the one you gave
>me above), such as given a empty or unmatch *.hdr file, but with
>little success. I guess Agent is not 100% unix, or alternatively, that
>Xnews is not 100% Unix... I'll keep trying ! 

It depends on the format of the mbx file.  Xnews looks for message-
beginning delimiter

From ???@[rest ignored]

If not, try writing a little perl script to do the conversion.  Something 
like this

#!/usr/bin/perl

$hdr = 'From ???@0x00000000 Mon Jan 01 00:00:00 1999' . "\n";

while (<>) {
        if (/^([^:\s]+\s)/) {
                $first = "^$1";
                print $hdr;
                print;
                while (<>) {
                        print $hdr if (/$first/);
                        print;
                }
        }
}


This assumes the first header in the file is the first header in every 
message.

-- 
  luu 
author of Xnews - http://Xnews.3Dnews.net

Technical Details
Message-ID: <8F1DC2020luutrangeocities@151.164.30.57>
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
References: <EkEL4.7127$L7.1191392@news-west.usenetserver.com> <8F1CEAE6Fwayneshammalammading@24.128.8.70> <VAQL4.11615$L7.2153385@news-west.usenetserver.com> <8F1D6240Ewayneshammalammading@24.128.8.70> <ih%L4.14380$L7.2867680@news-west.usenetserver.com> <ku%L4.14434$L7.2884951@news-west.usenetserver.com> <8F1D88DBAwayneshammalammading@216.64.31.79> <qM0M4.6690$q8.11485617@news-east.usenetserver.com>

Show Full Headers
Complete Article Headers
Message-ID: <8F1DC2020luutrangeocities@151.164.30.57>
Subject: Re: Migrating from Agent to Xnews
Date: Sat, 22 Apr 2000 00:00:00 +0000
From: luutran@geocities_.com.invalid (Luu Tran)
References: <EkEL4.7127$L7.1191392@news-west.usenetserver.com> <8F1CEAE6Fwayneshammalammading@24.128.8.70> <VAQL4.11615$L7.2153385@news-west.usenetserver.com> <8F1D6240Ewayneshammalammading@24.128.8.70> <ih%L4.14380$L7.2867680@news-west.usenetserver.com> <ku%L4.14434$L7.2884951@news-west.usenetserver.com> <8F1D88DBAwayneshammalammading@216.64.31.79> <qM0M4.6690$q8.11485617@news-east.usenetserver.com>
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: 614185508
X-Complaints-To: abuse@swbell.net
X-Trace: news.swbell.net 956373130 63.201.208.30 (Fri, 21 Apr 2000 22:12:10 CDT)
Organization: Daedalus
User-Agent: Xnews/03.04.11
NNTP-Posting-Date: Fri, 21 Apr 2000 22:12:10 CDT
Newsgroups: news.software.readers