🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Russell Ochocki Fri, 22 Jul 1994 04:51
How to Get TRN to use ELM for replies
#10198
Author: Russell Ochocki
Date: Fri, 22 Jul 1994 04:51
26 lines
1841 bytes
After reading an article in TRN that I'd like to reply to, I press "R" and
wind up in Rnmail to prepare my reply.  Now, I'd like to use ELM instead
(so my ELM aliases are available to me).

Being net-friendly user, I rtfm'ed.  I found the environment variable
MAILPOSTER.  Seems like the right trail.  I wound up with

     MAILPOSTER='elm -i%h -s%S %t'

This invokes ELM alright, except only the first word of the subject
appears in the Subject: line, the rest winds up as part of the list of
addresses.

Okay, I've got to quote the %S so it remains as a single "word".
But how?  I tried:

     MAILPOSTER='elm -i%h -s"%S" %t'

which does keep the subject together, except it fails if the subject
contains a ".  Is there a way to handle this?  Or am I going about this
the hard way....
-- 
______________________________________________________________________________
|  Russell Ochocki        |  Our flight was late arriving because the pilot
|  rdo@kynes.bison.mb.ca  |  in the plane ahead of us was wearing a hat.
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Re: How to Get TRN to use ELM for replies
#10202
Author: Otmar Lendl
Date: Fri, 22 Jul 1994 13:29
31 lines
1710 bytes
-----BEGIN PGP SIGNED MESSAGE-----

Russell Ochocki <rdo@kynes.bison.mb.ca> wrote:
>After reading an article in TRN that I'd like to reply to, I press "R" and
>wind up in Rnmail to prepare my reply.  Now, I'd like to use ELM instead
>(so my ELM aliases are available to me).
>

I use:
	MAILPOSTER="elm -i %h -s \"Re: %S\" %t"

You have to delete the header that trn generates when editing the
reply inside elm's editor (vi for me). Otherwise it will appear
in the _body_ of the reply.

Share and Enjoy !

otmar

-----BEGIN PGP SIGNATURE-----
Version: 2.3a

iQCVAgUBLi/Ot1ZKyub6E2H5AQEpKwP9GNqSdhU2Krwqnex8Zb1tq07ef/e4Z3TR
+Eff4oRl3Wd3xcBekkHHMJhTSb2m9WL7aBWZhDrLvBQT5pQBdBouS/WShT4VglgV
H8UFO/a9dAb/reZuZrT01FFqmv3BkHY6gFAScvhpLnEgvSAqSM1N74sphSNrD0ds
zgsVDGTZ39Y=
=Qlng
-----END PGP SIGNATURE-----
-- 
/ Otmar Lendl (lendl@cosy.sbg.ac.at) ## http://www.cosy.sbg.ac.at/~lendl/ \
\ Put the scrabble away Arthur, it won't save the human race! # finger4PGP/
Re: How to Get TRN to use ELM for replies
#10203
Author: Sridhar Venkataraman
Date: Fri, 22 Jul 1994 13:35
17 lines
1503 bytes
rdo@kynes.bison.mb.ca (Russell Ochocki) writes:

| Okay, I've got to quote the %S so it remains as a single "word".
| But how?  I tried:
| 
|      MAILPOSTER='elm -i%h -s"%S" %t'

From the <top-level-directory-of-source>/HINTS.TRN which most
sysadmins forget to make available for which users are not to blame!:

o To use elm to send all R)eplies:
        -EMAILHEADER="\\000"
        -EMAILPOSTER="elm -i %h -s \"Re: %S\" %t"

The above is for the file defined by *RNINIT btw.  I don't use elm!  

Sridhar.
Re: How to Get TRN to use ELM for replies
#10214
Author: Wayne Davison
Date: Fri, 22 Jul 1994 17:32
22 lines
1631 bytes
According to Otmar Lendl <lendl@cosy.sbg.ac.at>:
> I use:
> 	MAILPOSTER="elm -i %h -s \"Re: %S\" %t"

This fails if the subject contains a quote.  The fully-safe way to do this
(which also takes advantage of trn's Re: handling) is:

	MAILPOSTER="elm -i %h -s '%'s' %t"

..since the tick modifier handles the shell-safe quoting of any apostrophes
in the subject.

> You have to delete the header that trn generates when editing the
> reply inside elm's editor (vi for me). Otherwise it will appear
> in the _body_ of the reply.

Right.  This is due to elm not supporting the import of article headers
(yet).  You can get around this problem if you define MAILHEADER to be a
null value.
-- 
Wayne Davison
davison@borland.com
Re: How to Get TRN to use ELM for replies
#10221
Author: Mike O'Connor
Date: Fri, 22 Jul 1994 20:25
38 lines
2269 bytes
In article <CtCrDs.Mv9@borland.com> davison@borland.com (Wayne
Davison) writes:

:According to Otmar Lendl <lendl@cosy.sbg.ac.at>:
:> I use:
:> 	MAILPOSTER="elm -i %h -s \"Re: %S\" %t"
:
:This fails if the subject contains a quote.  The fully-safe way to do this
:(which also takes advantage of trn's Re: handling) is:
:
:	MAILPOSTER="elm -i %h -s '%'s' %t"
:
:...since the tick modifier handles the shell-safe quoting of any apostrophes
:in the subject.
:
:> You have to delete the header that trn generates when editing the
:> reply inside elm's editor (vi for me). Otherwise it will appear
:> in the _body_ of the reply.
:
:Right.  This is due to elm not supporting the import of article headers
:(yet).  You can get around this problem if you define MAILHEADER to be a
:null value.

Another option is to have an rn macro like:

R |/usr/lib/sendmail $LOGNAME

This will pipe the article that you're reading into sendmail to
yourself.  Later, when you're reading mail with Elm, you can simply
"r" within Elm or whatever.  It's easy and doesn't hold up news while
you want to compose your mail message.  :)

						...Mike
-- 
 Michael J. O'Connor           |  Internet:  mjo@jobone.srl.ford.com
 Ford Motor Company, OPEO      |  UUCP:      ...!fmsrl7!opeo!mjo
 20000 Rotunda, Bldg. 1-3001   |  Phone:     +1 (313) 248-1260
 Dearborn, MI  48121           |  Fax:       +1 (313) 323-6277
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