Article View: news.software.readers
Article #60816Re: Migrating from Agent to Xnews
From: Gozo
Date: Sat, 22 Apr 2000 00:00
Date: Sat, 22 Apr 2000 00:00
59 lines
3008 bytes
3008 bytes
luutran@geocities_.com.invalid (Luu Tran) wrote in
<8F1DC2020luutrangeocities@151.164.30.57>:
>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.
>
Thanks Luu. I don't know Perl and I have nothing to run it. However,
following your advice, I loaded the file in NoteTab (a good text editor)
and I simply replace "^pFrom " with "^pFrom ???@". It worked with Xnews. I
assumed that no text paragraph in my file started with "From ..." on a new
paragraph. But since NoteTab is supposed to support regex, I suppose I
could have developped a more sophisticated Replace command.
Thanks a lot !
"Cam ong"
--
Gozo
Technical Details
Message-ID:
<8F1EA7E3Gozo@63.211.125.90>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-mailReferences:
<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> <8F1DC2020luutrangeocities@151.164.30.57>Show Full Headers
Complete Article Headers
Message-ID: <8F1EA7E3Gozo@63.211.125.90> Subject: Re: Migrating from Agent to Xnews Date: Sat, 22 Apr 2000 00:00:00 +0000 From: ROT13=Tbmb@fbpvbybtvfg.pbz (Gozo) 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> <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 X-Deja-AN: 614198155 X-Abuse-Info: Otherwise we will be unable to process your complaint properly X-Complaints-To: support@usenetserver.com Organization: WebUseNet Corp http://www.usenetserver.com - Home of the fastest NNTP servers on the Net. User-Agent: Xnews/03.04.11 NNTP-Posting-Date: Sat, 22 Apr 2000 00:10:44 EDT Newsgroups: news.software.readers