🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #8840

Re: How to split saved articles?

#8840
From: Paul C. Sorenson
Date: Mon, 01 Dec 1997 00:00
79 lines
3742 bytes
guckes@math.fu-berlin.de (Sven Guckes) writes:

>paulcs@netcom.com (Paul C. Sorenson):
>> Is there a sentinal character or string
>> that delimits articles saved from nn?

>Saving articles *with* header should suffice for
>mailers and newsreaders to split up a folder.

>> I'm trying to sift through a few megabytes of articles I have saved from nn
>> (mostly) over the years.  For any one newsgroup, my saves from nn have
>> created what appear to be large ASCII files of concatenated articles.

>These are called "folders", btw.

>> I would like to delimit the articles with something like "\n--" [...]
>> for use in my favorite Personal Information Manager (PIM):
>> InfoSelect from Micro Logic Corp.
>> I can edit the ASCII files to insert the "\n--"'s, but doing that by hand
>> would be tedious.  How can I algorithmacly find where to put the "\n--"'s?

>Assuming you have been saving the articles with nn and with headers
>then these shuld be in "mailbox format", ie each headers starts with
>a "From_" line (where the _ stands for a space).

Thanks.  (Did you mean "From:_", rather than "From_"?)  What had thrown
me off a bit is that headers seem to vary.  For example, your post
saves with the header...

   Path: ix.netcom.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!fu-berlin.de!
   banach.math.fu-berlin.DE!not-for-mail
   From: guckes@math.fu-berlin.de (Sven Guckes)
   Newsgroups: news.software.nn
   Subject: Re: How to split saved articles?
   Date: 1 Dec 1997 13:16:27 GMT
   Organization: Freie Universitaet Berlin
   Lines: 36
   Message-ID: <slrn685e5a.knb.guckes@banach.math.fu-berlin.de>
   References: <paulcsEKHDnG.J1L@netcom.com>
   Reply-To: guckes@math.fu-berlin.de
   NNTP-Posting-Host: banach.math.fu-berlin.de (160.45.40.62)
   Mime-Version: 1.0
   Content-Type: text/plain; charset=iso-8859-1
   Content-Transfer-Encoding: 8bit
   X-Access: 16 17 19
   X-Newsreader-Info: http://www.math.fu-berlin.de/~guckes/slrn/
   X-Newsreader: slrn (0.9.4.3 UNIX)
   Xref: ix.netcom.com news.software.nn:10381

... while other headers saved with different fields...

   Xref: netcom.com comp.lang.idl-pvwave:3385
   Path: netcom.com!ix.netcom.com!howland.reston.ans.net!gatech!rutgers!uwvax!news
   From: Liam Gumley <liamg@ssec.wisc.edu>
   Newsgroups: comp.lang.idl-pvwave
   Subject: Floating Point Bug on Intel Pentium CPUs
   Date: 23 Nov 1994 17:08:44 GMT
   Organization: University of WI, Madison -- Computer Sciences Dept.
   Lines: 19
   Message-ID: <3avsus$22n@spool.cs.wisc.edu>
   NNTP-Posting-Host: noname167.ssec.wisc.edu

...and even some of those fields that were in common, like "Xref:_",
appear in a different order.  (Perhaps this second example header did
not come from nn.)

In any case, if it's safe to assume that there will always be a
"\nFrom:_" field *somewhere* in the header.  I could do a vi macro (or
whatever) that would insert a dilimiter string (such as "--\n", or
whatever) at the top of each paragraph that contains "\nFrom:_".

Thanks, Sven!

-- 
Paul C. Sorenson
paulcs@netcom.com

Technical Details
Message-ID: <paulcsEKIvDM.81z@netcom.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
References: <paulcsEKHDnG.J1L@netcom.com> <slrn685e5a.knb.guckes@banach.math.fu-berlin.de>

Show Full Headers
Complete Article Headers
Message-ID: <paulcsEKIvDM.81z@netcom.com>
Subject: Re: How to split saved articles?
Date: Mon, 01 Dec 1997 00:00:00 +0000
From: paulcs@netcom.com (Paul C. Sorenson)
References: <paulcsEKHDnG.J1L@netcom.com> <slrn685e5a.knb.guckes@banach.math.fu-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nn.mbox.zip!not-for-mail
X-Deja-AN: 294262992
Sender: paulcs@netcom.netcom.com
Organization: Netcom On-Line Services
Newsgroups: news.software.nn