Article View: news.software.readers
Article #8071Re: Using Elm within trn (solution) (A problem)
From: Robert Nicholson
Date: Tue, 15 Mar 1994 17:04
Date: Tue, 15 Mar 1994 17:04
56 lines
2504 bytes
2504 bytes
robert@steffi.demon.co.uk (Robert Nicholson) wrote in comp.mail.elm,news.software.readers
>export NEWSPOSTER="elm -i %h -s \"Usenet News Post\n\n\" usenetnews"
For those folks following this thread. I have one problem with this
now.
When using trn and posting an article you are immediately asked for
Subject: and Distribution: I want the contents of the Subject: so
that I can pass them to elm's -s flag in NEWSPOSTER (with lazy
evaluation). Otherwise all stored postings will have the same subject.
You see %S normally only represents the subject for the _current_
article. So when composing a new article %S doesn't exist.
In fact the only place that Subject and Distribution is stored is in
~/.rnhead
This is a significant limitation.
---
Well I thought about it for a while and came up with the following
attempt.
NEWSPOSTER=\`/usr/local/bin/post %h %S\`
The post script looked something like this.
# $1 = %h
# $2 = %S
sleep 2 # wait for contents of ~/.rnhead to be written
if [ $# -eq 1 ] ; then
s=`grep Subject: ~/.rnhead | sed 's/Subject: \(.*\)/\1/'`
elm -i $1 -s "$s" usenetnews
else
elm -i $1 -s "$2" usenetnews
fi
----
All signs were that this would work. but for some reason it just hung
attempting to bring up elm. (PL23)
I really really don't want to have to do this like this.
Is there any reason why the Subject: from the prompt in a new post
cannot be stuffed into %S?
--
"You know what's wrong with you?" (Audrey Hepburn, Cary Grant)
"No, what?"
"Nothing" (Charade, 1963)
(ASCII for text only messages)
Technical Details
Message-ID:
<2m4pqm$5bm@steffi.demon.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.elm.mbox.zip!gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!newsxfer.itd.umich.edu!sol.ctr.columbia.edu!howland.reston.ans.net!pipex!uknet!demon!steffi.demon.co.uk!steffi.demon.co.uk!not-for-mailReferences:
<2m4mau$4o5@steffi.demon.co.uk>Show Full Headers
Complete Article Headers
Message-ID: <2m4pqm$5bm@steffi.demon.co.uk> Subject: Re: Using Elm within trn (solution) (A problem) Date: Tue, 15 Mar 1994 17:04:22 +0000 From: robert@steffi.demon.co.uk (Robert Nicholson) References: <2m4mau$4o5@steffi.demon.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-comp.mail.elm.mbox.zip!gmd.de!newsserver.jvnc.net!yale.edu!yale!gumby!newsxfer.itd.umich.edu!sol.ctr.columbia.edu!howland.reston.ans.net!pipex!uknet!demon!steffi.demon.co.uk!steffi.demon.co.uk!not-for-mail Newsgroups: comp.mail.elm,news.software.readers Organization: me organised, that's a joke. Lines: 24 Distribution: world NNTP-Posting-Host: steffi.demon.co.uk