Article View: news.software.readers
Article #19817elm "gateway" for tin and slrn
From: fram... Ulli Horlacher
Date: Wed, 13 Mar 1996 00:00
Date: Wed, 13 Mar 1996 00:00
51 lines
2044 bytes
2044 bytes
Are you using tin or slrn and want that these news readers will respect the
elm aliases when forwarding an article via mail?
Then you can use my elm "gateway" which prepares the news article so that
elm can handle them. In fact this is a dirty hack. If you have something
more neat, let me know. :-)
For tin, set the environment variable MAILER to newselm:
"export MAILER=newselm" or "setenv MAILER /usr/local/bin/newselm"
For slrn, set the option: set sendmail_command "/usr/local/bin/newselm"
in .slrnrc
Store this little program as /usr/local/bin/newselm :
#!/bin/sh
TMPMAIL=$HOME/.newselm.$$
trap "rm -f $TMPMAIL; exit 1" 0 1 2 15
myexec=`awk -v q=\' '
BEGIN{header=1}
/^To: /{
to=substr($0,5)
sub("[(].*[)]","",to)
sub("[ \t]","",to)
sub(".*<","",to)
sub(">.*","",to)
gsub(q,"",to)
}
/^Subject: /{subj=substr($0,10)}
/^$/ && header==1 {
gsub(q,"",subj)
header=0
printf "elm -s %s%s%s %s%s%s", q,subj,q,q,to,q
next
}
header==0 {print >tmpmail}
' tmpmail=$TMPMAIL -`
eval $myexec <$TMPMAIL || elm -s "newselm failed!" `whoami` <$TMPMAIL
--
\ Ulli Horlacher \ G=ulli;S=horlacher;OU=rus;P=uni-stuttgart;A=d400;C=de \
\ Königsbergerstr 6 \ fram...@moep.bb.bawue.de \ ccc_horl@dulruu51.bitnet \
\ 71065 Sindelfingen \ germany!framstag \ psi%026245050260103::8::ccc_horl \
\ "Noch keine 30 und schon an die Nachwelt denken..." - Kristian Köhntopp \
Technical Details
Message-ID:
<4i7908$9hk@syssrv.bb.bawue.de>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <4i7908$9hk@syssrv.bb.bawue.de> Subject: elm "gateway" for tin and slrn Date: Wed, 13 Mar 1996 00:00:00 +0000 From: fram...@moep.bb.bawue.de (Ulli Horlacher) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp!not-for-mail X-Deja-AN: 142459562 Content-type: text/plain; charset=iso-8859-1 Organization: Nugget Town: Computers, Networks and Women Mime-version: 1.0 Newsgroups: alt.lang.s-lang,news.software.readers