🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #20238

Re: slrn wishlist

#20238
From: Andreas Karrer
Date: Fri, 29 Mar 1996 00:00
44 lines
2200 bytes
In article <slrn4lm3n5.j26.napalm@wrath.ugcs.caltech.edu>, K. Bruner wrote:

>slrn is the first newsreader that's gotten me to leave my old pal nn.

I'd guess many of us slrunners are converted nn users...

>- a way to save automatically copies of mail sent through slrn

I do this with the following gross hack in .slrnrc :
 
  %
  % there is no save_mail so we have to emulate it
  set sendmail_command 
     "(echo ''; echo From $LOGNAME `date +'%a %h %d %H:%M:%S 19%y'`) 
     >> $HOME/mail/mymails ; tee -a $HOME/mail/mymails | 
     /usr/lib/sendmail -oi -t -oem -odb"
 
(folded for readability; in .slrnrc the whole thing must be
on a single line).

This appends the mail sent, in mbox format with a unix-style "From " line,
to a file ~/mail/mymails .

This is of course highly system dependent:
  - only on unix,
  - some systems some might not have "tee -a" (append)
  - some may have $USER, not $LOGNAME
  - sendmail, perish the thought, could be somewhere else,
  - some systems will have other formats for the "date" command. this one
    works on SunOS4, Sol2, Linux, HP-UX 9, though,
  - and of course, this code will break after 31-Dec-1999 :-)

People inclined to more tidyness will write a small perl script that
does the same; and maybe some error checking...


-- 
  Andi Karrer, Institute for Electronics, ETH Zuerich, Switzerland
"Further, experience leads me to be very sceptical concerning the effectiveness 
 of writing  warning messages into a programme's documentation or output."
			- Howard Flack, <1995Jul11.142234.16055@news.unige.ch>


Technical Details
Message-ID: <slrn4lmdpg.ccr.karrer@kuru.ee.ethz.ch>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
References: <slrn4lm3n5.j26.napalm@wrath.ugcs.caltech.edu>

Show Full Headers
Complete Article Headers
Message-ID: <slrn4lmdpg.ccr.karrer@kuru.ee.ethz.ch>
Subject: Re: slrn wishlist
Date: Fri, 29 Mar 1996 00:00:00 +0000
From: karrer@ife.ee.ethz.ch (Andreas Karrer)
References: <slrn4lm3n5.j26.napalm@wrath.ugcs.caltech.edu>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail
X-Deja-AN: 144757775
Organization: Institute for Electronics, ETH Zurich, Switzerland
Newsgroups: news.software.readers