🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #8839

Re: How to split saved articles?

#8839
From: Sven Guckes
Date: Mon, 01 Dec 1997 00:00
39 lines
2110 bytes
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).

Adding the "--" line should be as easy as this with vi (and clones):

	:%s/^From /--^M&/

Or use Perl.  Or .. whatever.

Sven

-- 
Sven Guckes guckes@math.fu-berlin.de using NN 6.5.0 #0 (NOV) [961201]
NN Pages:          http://www.math.fu-berlin.de/~guckes/nn/
NN wishlist:       http://www.math.fu-berlin.de/~guckes/nn/wishlist.html
NN sample setup:   http://www.math.fu-berlin.de/~guckes/setup/#nn  [970630]

Technical Details
Message-ID: <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
References: <paulcsEKHDnG.J1L@netcom.com>

Show Full Headers
Complete Article Headers
Message-ID: <slrn685e5a.knb.guckes@banach.math.fu-berlin.de>
Subject: Re: How to split saved articles?
Date: Mon, 01 Dec 1997 00:00:00 +0000
From: guckes@math.fu-berlin.de (Sven Guckes)
References: <paulcsEKHDnG.J1L@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
X-Deja-AN: 294192592
X-Newsreader-Info: http://www.math.fu-berlin.de/~guckes/slrn/
Organization: Freie Universitaet Berlin
X-Access: 16 17 19
Reply-To: guckes@math.fu-berlin.de
Newsgroups: news.software.nn