🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #9160

Re: TIN: save files with shortened header ?

#9160
From: Bruce Hauge
Date: Mon, 23 May 1994 16:23
42 lines
2652 bytes
Jianhong Feng (feng@blah.blah.edu) writes:

> I use TIN 1.2 PL2 to read newsgroups. To save multiple articles into a 
> single file, I use "s" and "=FileName". The resulting file contains
> then long headers with lots of "junk" entries (such as Path:,
> X-Newsreaders:, NNTP-Posting-Host:, etc.).

> Is it possible to save (several) article(s) into a single file
> with shortened header (e.g. containing only Date/From/Subject/Newsgroups) ?

Here is what I use, although I wish there was a way to specify which file and
directory to save it to:

In your ~/.tin/tinrc, edit the following line:

# print program with parameters used to print articles/threads
default_printer=tin_print

tin_print is actually a shell script which is invoked when you select "o"
(output) from TIN.  This is what is in tin_print:

#!/bin/ksh
# script to "o"utput from TIN to a file

cat $@ >> /tmp/tin_printfile
echo "==================================================================\
=============" >> /tmp/tin_printfile

This give you an output in the file /tmp/tin_printfile for each article 
separated by a dashed line. The nice thing about using the "o" option is
that it does the header stripping for you and only leaves From:, Subject:,
Newsgroups:, and Date:.

Bruce

   +------------------------------------------------------------------------+
   | Bruce Hauge                                                            | 
   | HEWLETT-PACKARD COMPANY                     EMAIL: bruceh@cv.hp.com    | 
   | Integrated Circuits Business Division       PHONE: (503) 715-2675      |
   | 1050 NE Circle Blvd., MS: 2U/HH32           FAX: (503) 715-2145        |
   | Corvallis, OR  97330                                                   |
   +------------------------------------------------------------------------+
Technical Details
Message-ID: <1994May23.162357.6505@hpcvca.cv.hp.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!get.hooked.net!decwrl!parc!barrnet.net!sgiblab!sdd.hp.com!hp-pcd!hpcvca!hpcvcdv.cv.hp.com!bruceh
References: <2rld44$s5d@elna.ethz.ch>

Show Full Headers
Complete Article Headers
Message-ID: <1994May23.162357.6505@hpcvca.cv.hp.com>
Subject: Re: TIN: save files with shortened header ?
Date: Mon, 23 May 1994 16:23:57 GMT
From: bruceh@cv.hp.com (Bruce Hauge)
References: <2rld44$s5d@elna.ethz.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!bga.com!news.sprintlink.net!get.hooked.net!decwrl!parc!barrnet.net!sgiblab!sdd.hp.com!hp-pcd!hpcvca!hpcvcdv.cv.hp.com!bruceh
Newsgroups: news.software.readers
Sender: nobody@hpcvca.cv.hp.com
Nntp-Posting-Host: hpcvcdv.cv.hp.com
Organization: Hewlett-Packard Company, Corvallis, Oregon USA
X-Newsreader: TIN [version 1.2 021193BETA PL3]
Lines: 42