Thread View: news.software.readers
10 messages
10 total messages
Started by Jeff Knapp
Mon, 15 Nov 1999 00:00
XNEWS: Importing Folders
Author: Jeff Knapp
Date: Mon, 15 Nov 1999 00:00
Date: Mon, 15 Nov 1999 00:00
28 lines
1437 bytes
1437 bytes
Luu: Lemme preface with this: XNews rules. Now, to my petty question. I have a Unix mbx folder that I get weekly which is a congolomoration of all postings made to a newsgroup I moderate. (In essence, a weekly archive). In the past, I have been using NewsXpress to open then and maintain them. This works great. I can then take the folder that NewsXpress wrote and import it into Xnews with no fuss, no muss. However, I cannot open the raw MBX file in Xnews and have it parse correctly. Would this be something you might be interested in undertaking? I would go into further detail, but if you're not interested, I will remain thrilled with my two step process (even tho I'd love a one step process :-) In any event, thanks for providing the world with such a nifty piece of software. It rocks; and everyone should use it. Jeff
Re: XNEWS: Importing Folders
Author: Luu Tran
Date: Tue, 16 Nov 1999 00:00
Date: Tue, 16 Nov 1999 00:00
23 lines
967 bytes
967 bytes
director@gti.net (Jeff Knapp) wrote in <s30hvltjhsq55@news.supernews.com>: >However, I cannot open the raw MBX file in Xnews and have it parse >correctly. > What does the Unix mbx file look like? Xnews expects this format From ???@_____________ <headers> <blank line> <body> From ???@_____________ etc. -- luu author of Xnews - http://xnews.3Dnews.net
Re: XNEWS: Importing Folders
Author: Jeff Knapp
Date: Sun, 28 Nov 1999 00:00
Date: Sun, 28 Nov 1999 00:00
37 lines
1413 bytes
1413 bytes
luutran@geocities_.com.invalid (Luu Tran) wrote in <8E7FE747Eluutrangeocities@207.69.128.140>: >director@gti.net (Jeff Knapp) wrote in ><s30hvltjhsq55@news.supernews.com>: > >>However, I cannot open the raw MBX file in Xnews and have it parse >>correctly. >> > >What does the Unix mbx file look like? > >Xnews expects this format > >From ???@_____________ ><headers> ><blank line> ><body> >From ???@_____________ >etc. There's no From ???@_______________ ; merely <header> <body> <blankline> NewsXpress doesn't need them, but it puts them in when it re-saves the folder (only after a resort or some other activity -- merely reading will not trigger a re-save) Thanks for looking into it, Luu! Jeff
Re: XNEWS: Importing Folders
Author: Luu Tran
Date: Mon, 29 Nov 1999 00:00
Date: Mon, 29 Nov 1999 00:00
19 lines
1109 bytes
1109 bytes
director@gti.net (Jeff Knapp) wrote in <8E8C886C9directorgtinet@207.126.101.97>: >There's no From ???@_______________ ; merely > ><header> ><body> ><blankline> > If you know what the firt header is (e.g. Path:), write a little Perl script or something to go through the file and insert the From ???@____ line where needed. -- luu author of Xnews - http://xnews.3Dnews.net
Re: XNEWS: Importing Folders
Author: Ross Presser
Date: Mon, 29 Nov 1999 00:00
Date: Mon, 29 Nov 1999 00:00
27 lines
1565 bytes
1565 bytes
alt.distinguished.luutran@geocities_.com.invalid (Luu Tran).wrote.posted.offered: >director@gti.net (Jeff Knapp) wrote in ><8E8C886C9directorgtinet@207.126.101.97>: > >>There's no From ???@_______________ ; merely >> >><header> >><body> >><blankline> >> > >If you know what the firt header is (e.g. Path:), write a little Perl >script or something to go through the file and insert the From ???@____ >line where needed. > Or insert one at the top and after every blankline, without depending on the first header. -- Ross Presser ross_presser@imtek.com "And if you're the kind of person who parties with a bathtub full of pasta, I suspect you don't care much about cholesterol anyway."
Re: XNEWS: Importing Folders
Author: Jeff Knapp
Date: Thu, 02 Dec 1999 00:00
Date: Thu, 02 Dec 1999 00:00
27 lines
1441 bytes
1441 bytes
luutran@geocities_.com.invalid (Luu Tran) wrote in <8E8CDE68Bluutrangeocities@207.126.101.97>: >director@gti.net (Jeff Knapp) wrote in ><8E8C886C9directorgtinet@207.126.101.97>: > >>There's no From ???@_______________ ; merely >> >><header> >><body> >><blankline> >> > >If you know what the firt header is (e.g. Path:), write a little Perl >script or something to go through the file and insert the From ???@____ >line where needed. Since my Perl skills are lame at best and VB's handling of such like this sucks, I will stick with running it thru NewsXpress and then into Xnews. No biggie. Thanks for your consideration and for the rockinest newsprog around! Jeff
Re: XNEWS: Importing Folders
Author: Jeff Knapp
Date: Fri, 03 Dec 1999 00:00
Date: Fri, 03 Dec 1999 00:00
27 lines
1484 bytes
1484 bytes
luutran@geocities_.com.invalid (Luu Tran) wrote in <8E90DDF6Cluutrangeocities@207.126.101.100>: >>Since my Perl skills are lame at best and VB's handling of such like >>this sucks, I will stick with running it thru NewsXpress and then into >>Xnews. >> > >Give this a try. I syntax checked it but didn't test it. You can run it >in Unix or Win32 with > >perl script.pl <infile >outfile Keeps giving me a 0 byte file as my outfile :-( >This assumes the first line contains a header common to all articles, >e.g., Path: Is "Path:" supposed to be defined somewhere? >Good luck. I'll need it. :-) I just don't get PERL. :-) Jeff
Re: XNEWS: Importing Folders
Author: Luu Tran
Date: Fri, 03 Dec 1999 00:00
Date: Fri, 03 Dec 1999 00:00
41 lines
1578 bytes
1578 bytes
director@gti.net (Jeff Knapp) wrote in
<s4d6q25bdi431@news.supernews.com>:
>Since my Perl skills are lame at best and VB's handling of such like
>this sucks, I will stick with running it thru NewsXpress and then into
>Xnews.
>
Give this a try. I syntax checked it but didn't test it. You can run it
in Unix or Win32 with
perl script.pl <infile >outfile
This assumes the first line contains a header common to all articles,
e.g., Path:
Good luck.
---------------
$hdr = 'From ???@0x00000000 Mon Jan 01 00:00:00 1999' . "\n";
while (<>) {
if (/^([^:\s]+\s)/) {
$first = "^$1";
print $hdr;
print "$_\n";
while (<>) {
print $hdr if (/$first/);
print "$_\n";
}
}
}
--
luu
author of Xnews - http://xnews.3Dnews.net
Re: XNEWS: Importing Folders
Author: Luu Tran
Date: Sat, 04 Dec 1999 00:00
Date: Sat, 04 Dec 1999 00:00
28 lines
1406 bytes
1406 bytes
director@gti.net (Jeff Knapp) wrote in <s4fot55pgsp115@news.supernews.com>: >Keeps giving me a 0 byte file as my outfile :-( > Well I didn't say it would actually work :) Can't tell what the problem is w/o seeing the input. Maybe you should post a snippet of the file to be converted (say the 1st two messages). You'll probably want to turn off word wrap. Incidentally, print "$_\n"; should of course be just print; (Forgot this is perl.) -- luu author of Xnews - http://xnews.3Dnews.net
Re: XNEWS: Importing Folders
Author: Jeff Knapp
Date: Sat, 04 Dec 1999 00:00
Date: Sat, 04 Dec 1999 00:00
26 lines
1658 bytes
1658 bytes
luutran@geocities_.com.invalid (Luu Tran) wrote in <8E91E268Bluutrangeocities@207.126.101.100>: >director@gti.net (Jeff Knapp) wrote in ><s4fot55pgsp115@news.supernews.com>: > >>Keeps giving me a 0 byte file as my outfile :-( >> > >Well I didn't say it would actually work :) > >Can't tell what the problem is w/o seeing the input. Maybe you should >post a snippet of the file to be converted (say the 1st two messages). >You'll probably want to turn off word wrap. I'm actually going to just tweak the prog that generates the MBX file to put the From string at the top of each message as it is generated, thus sparing me the need to run it thru the Perl script. I truly appreciate the help. Thanks again, Jeff
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads