🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
7 messages
7 total messages Started by Benatoll Tue, 15 Feb 2000 00:00
slrn & header printing
#58125
Author: Benatoll
Date: Tue, 15 Feb 2000 00:00
13 lines
1064 bytes
Hi,

Is it possible to prevent slrn from printing of all the header lines
such as :
Message-ID, NNTP-Posting-Host, References, X-Complaints-To, X-MimeOLE,
Xref, etc. ...
It takes the third of the page and it's just a waste of paper.

Thanks in advance

Benatoll	(kgt@free.fr)

Re: slrn & header printing
#58012
Author: Maarten den Braber
Date: Tue, 15 Feb 2000 00:00
19 lines
1597 bytes
* Benatoll <kgt@free.fr> in news.software.readers:
> Is it possible to prevent slrn from printing of all the header lines
> such as :
> Message-ID, NNTP-Posting-Host, References, X-Complaints-To, X-MimeOLE,
> Xref, etc. ...
> It takes the third of the page and it's just a waste of paper.

Include this in your .slrnrc:

visible_headers "From:,Subject:,Newsgroups:,Date:,Followup-To:"

mdb
-- 
maarten den braber  -  mdb@twister.cx  -  http://www.twister.cx  |  (�-
respect is like a smile: it costs nothing and everyone likes it  |  //\
...............................................................  |  V_/_
perl -e 'print $i=pack(c5,(41*2),sqrt(7056),(unpack(c,H)-2),oct(115),10);'

Re: slrn & header printing
#58015
Author: raf
Date: Tue, 15 Feb 2000 00:00
12 lines
1140 bytes
On Tue, 15 Feb 2000 12:20:05 GMT, Benatoll wrote:
>Hi,
>
>Is it possible to prevent slrn from printing of all the header lines
>such as :
>Message-ID, NNTP-Posting-Host, References, X-Complaints-To, X-MimeOLE,
>Xref, etc. ...
>It takes the third of the page and it's just a waste of paper.

I press the "T" key to toggle full/simple headers.

Re: slrn & header printing
#58121
Author: Thomas Schultz
Date: Tue, 15 Feb 2000 00:00
28 lines
1699 bytes
On 15 February 2000 at 12:20 GMT, Benatoll <kgt@free.fr> wrote:

> Is it possible to prevent slrn from printing of all the header lines
> such as :
> Message-ID, NNTP-Posting-Host, References, X-Complaints-To, X-MimeOLE,
> Xref, etc. ...
> It takes the third of the page and it's just a waste of paper.

Unfortunatly, The header weeding you can configure by using
"visible_headers" does not influence the way articles are printed.
IMO, it would be nice to make this configurable (probably also for
functions like piping, saving etc.) in a future version of slrn.

Meanwhile, you can of course write a small script to strip the headers
you do not like and put it in "printer_name". Personally, I use a2ps
to strip superfluous headers and to get nicer output. I like the
output of the command

#v+
a2ps --pretty-print=mail --strip-level=1 --columns=1 --portrait
--medium=A4dj --header --left-footer
#v-

but your preferences may vary.
-- 
Thomas Schultz <tststs@gmx.de>

Re: slrn & header printing
#58167
Author: Phil Ehrens
Date: Wed, 16 Feb 2000 00:00
14 lines
1133 bytes
raf wrote:
>I press the "T" key to toggle full/simple headers.

I think you mean "t".  "T" toggles quote expansion.

-- 
Phil Ehrens <pehrens@ligo.caltech.edu>| Fun stuff:
The LIGO Laboratory, MS 18-34         | http://www.ralphmag.org
California Institute of Technology    | http://www.yellow5.com
1200 East California Blvd.            | ftp://ftp.no.pgpi.com/pub/pgp
Pasadena, CA 91125 USA                | http://slashdot.org
Phone:(626)395-8518 Fax:(626)793-9744 | http://freshmeat.net

Re: slrn & header printing
#58208
Author: Phil Ehrens
Date: Fri, 18 Feb 2000 00:00
22 lines
1407 bytes
Gary Jones wrote:
>Phil Ehrens wrote:
>> raf wrote:
>> >I press the "T" key to toggle full/simple headers.
>> 
>> I think you mean "t".  "T" toggles quote expansion.
>
>Yes, but the "T" /key/ does exactly what raf said :-)
>

Very funny... and on my keyboard the "" key
moves the cursor forward one space.

-- 
Phil Ehrens <pehrens@ligo.caltech.edu>| Fun stuff:
The LIGO Laboratory, MS 18-34         | http://www.ralphmag.org
California Institute of Technology    | http://www.yellow5.com
1200 East California Blvd.            | ftp://ftp.no.pgpi.com/pub/pgp
Pasadena, CA 91125 USA                | http://slashdot.org
Phone:(626)395-8518 Fax:(626)793-9744 | http://freshmeat.net

Re: slrn & header printing
#58212
Author: Benatoll
Date: Sat, 19 Feb 2000 00:00
59 lines
2303 bytes
Thank you for all you answers.

I finally wrote a little script in perl and now, I really have what I
desired when I print :
4 lines at the beginning :

From: ...
Newsgroup: ...
Subject: ...
NNTP-Posting-Date:

and then the text.

Benatoll

PS : If it interests somebody, here's how it works (it's a bit ugly but
it works) :

one perl script (named filtre.pl):
___________________________________________
#!/usr/bin/perl
open (FILE, '/tmp/article');
open (RES, '>/tmp/result');
while ($line = <FILE>) {
 if ($line =~ /Path:/) {}
 elsif ($line =~ /Organization:/) {}
 elsif ($line =~ /NNTP-Posting-Date:/) {
  print RES $line;
 }
 elsif ($line =~ /Date:/) {}
 elsif ($line =~ /Message-ID:/) {}
 elsif ($line =~ /References:/) {}
 elsif ($line =~ /Lines:/) {}
 elsif ($line =~ /NNTP-Posting-Host:/) {}
 elsif ($line =~ /X-Priority:/) {}
 elsif ($line =~ /X-MSMail-Priority:/) {}
 elsif ($line =~ /X-Trace:/) {}
 elsif ($line =~ /X-Complaints-To:/) {}
 elsif ($line =~ /X-Newsreader:/) {}
 elsif ($line =~ /X-MimeOLE:/) {}
 elsif ($line =~ /Xref:/) {}
 else {
  print RES $line;
 }
}
close FILE;
close RES;
_______________________________________________
and the bash script name filter:
_________________________________
cat $1 > /tmp/article
./filtre.pl
lpr /tmp/result
_________________________________

and in the .slrnrc file, just put the line :
	set_printername filter

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