Thread View: news.software.readers
8 messages
8 total messages
Started by Robert Nicholson
Tue, 15 Mar 1994 12:05
Elm with trn?
Author: Robert Nicholson
Date: Tue, 15 Mar 1994 12:05
Date: Tue, 15 Mar 1994 12:05
9 lines
991 bytes
991 bytes
Has anybody got any ideas on how to use Elm within trn for replying?
I'd like my reply's (followups too) to go to =sent
--
"You know what's wrong with you?" (Audrey Hepburn, Cary Grant)
"No, what?"
"Nothing" (Charade, 1963)
(ASCII for text only messages)
Re: Elm with trn?
Author: Steven King, Software Archaeolog...
Date: Tue, 15 Mar 1994 18:59
Date: Tue, 15 Mar 1994 18:59
35 lines
2091 bytes
2091 bytes
robert@steffi.demon.co.uk (Robert Nicholson) publicly declared:
>Has anybody got any ideas on how to use Elm within trn for replying?
>
>I'd like my reply's (followups too) to go to =sent
You could probably do it with something similar to the following
environment variable:
MAILPOSTER="elm -s '%s' -i '%h' %t"
See the trn man page for more information about the MAILPOSTER variable
and what all the various "%" expansions do.
A *BETTER* solution, if your goal is simply to get your sent letter
appended to "=sent" is to set the following variable:
MAILRECORD="~/Mail/sent"
This is documented in the Rnmail man page. To get news articles you
post saved, try setting...
AUTHORCOPY="~/Mail/sent"
...as documented in the Pnews man page.
(I've assumed that you have elm configured to look in ~/Mail for your
folders, and that Rnmail and Pnews will properly expand the tilde. If
this doesn't work, make sure ~/Mail is the proper directory, and try to
give the complete path like "AUTHORCOPY=/home/robert/Mail/sent".)
--
----------------------------------------------<Steven King, king@cig.mot.com>--
Let others praise the ancient times, I'm glad I was born in these.
(Ovid, c. 53 BC)
Re: Elm with trn?
Author: Wayne Davison
Date: Wed, 16 Mar 1994 07:29
Date: Wed, 16 Mar 1994 07:29
14 lines
1105 bytes
1105 bytes
According to Steven King, Software Archaeologist <king@wildebeest.cig.mot.com>: > MAILPOSTER="elm -s '%s' -i '%h' %t" Just one addendum to this is that if you are using trn 3.4.1, you can use the following slightly modified line: MAILPOSTER="elm -s '%'s' -i '%h' %t" (i.e. use %'s) to ensure that any apostrophes in the subject get escaped with backslashes. -- Wayne Davison davison@borland.com
Re: Elm with trn?
Author: Robert Nicholson
Date: Wed, 16 Mar 1994 08:44
Date: Wed, 16 Mar 1994 08:44
9 lines
1126 bytes
1126 bytes
That's fine now somebody tell me how to get the Subject for a _new_
post. So that I can pass it to elm.
--
"You know what's wrong with you?" (Audrey Hepburn, Cary Grant)
"No, what?"
"Nothing" (Charade, 1963)
(ASCII for text only messages)
Re: Elm with trn?
Author: Robert Nicholson
Date: Wed, 16 Mar 1994 10:18
Date: Wed, 16 Mar 1994 10:18
68 lines
3310 bytes
3310 bytes
king@wildebeest.cig.mot.com wrote in news.software.readers,comp.mail.elm
>A *BETTER* solution, if your goal is simply to get your sent letter
>appended to "=sent" is to set the following variable:
>
> MAILRECORD="~/Mail/sent"
>
>This is documented in the Rnmail man page. To get news articles you
>post saved, try setting...
>
> AUTHORCOPY="~/Mail/sent"
>
>...as documented in the Pnews man page.
>
>(I've assumed that you have elm configured to look in ~/Mail for your
>folders, and that Rnmail and Pnews will properly expand the tilde. If
>this doesn't work, make sure ~/Mail is the proper directory, and try to
>give the complete path like "AUTHORCOPY=/home/robert/Mail/sent".)
Just wanted to note that this is by far the most sophisiticated
solution I've seen. It's also very simple.
However, the only drawback being is that you lose Elm aliasing because
you are no longer using Elm.
As my original intentions were mostly for archiving purposes this seems
to suit the task nicely.
The beauty of this is that you are not using mail and consequently you
do not get the usual extra envelope with it's own Subject header.
Note: when using elm for a new post, it's impossible to have the Posts
Subject content in the _envelopes_ header. This means that you always
have the same subject for each post. This is very limiting and
defeats the purpose somewhat.
By not using elm there is another draw back and that is that you are
saving directly to a mailbox and consequently you lose any mail
filtering that you set up to organise your posts into their respective
mailboxes.
For me, the simplicity of the solution out weighs the lack of
functionality.
In an ideal world I'd like to be able to use elm but so far I cannot
find a way to do this such that it properly archives new posts.
(Without going to extraordinary lengths. ie. hacking the Subject's
contents out of .rnhead) and doing something like
NEWSPOSTER="usr/local/bin/post %h %S"
# $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
Strangely enough, when I tried this Elm hung on start up.
--
"You know what's wrong with you?" (Audrey Hepburn, Cary Grant)
"No, what?"
"Nothing" (Charade, 1963)
(ASCII for text only messages)
Re: Elm with trn?
Author: Chip Rosenthal
Date: Wed, 16 Mar 1994 12:13
Date: Wed, 16 Mar 1994 12:13
21 lines
1382 bytes
1382 bytes
In article <2m6mdo$2ds@steffi.demon.co.uk>, Robert Nicholson <robert@steffi.demon.co.uk> wrote: >However, the only drawback being is that you lose Elm aliasing because >you are no longer using Elm. Then use a mailer that supports aliasing. Here is one: #!/bin/sh rmail `elmalias $@` Note that some systems (i.e. BSD) limit rmail for mail relaying purposes. In that case, use sendmail or something similar. So, save this script to a file and point your RNMAILER environment variable to it. -- Chip Rosenthal 512-447-0577 | I figure the odds be fifty-fifty Unicom Systems Development | I just might have some thing to say. <chip@chinacat.Unicom.COM> | -FZ
Re: Elm with trn?
Author: Martin J. Dellwo
Date: Thu, 17 Mar 1994 02:23
Date: Thu, 17 Mar 1994 02:23
40 lines
2823 bytes
2823 bytes
In article <2m6mdo$2ds@steffi.demon.co.uk>, Robert Nicholson <robert@steffi.demon.co.uk> wrote: >The beauty of this is that you are not using mail and consequently you >do not get the usual extra envelope with it's own Subject header. >Note: when using elm for a new post, it's impossible to have the Posts >Subject content in the _envelopes_ header. This means that you always >have the same subject for each post. This is very limiting and >defeats the purpose somewhat. I guess I for one am having a difficult time understanding exactly what you are asking about. Is this for a new thread started within trn using 'f', or sending out a posting using Pnews at the unix prompt? I'm assuming the former. Then, if you can use elm at all, can't you change the subject before you edit the post, or after editing your message using the 'h' (edit headers) option in elm? I guess if you feed it a file directly, you don't get to any elm menus... And I'm not sure what is meant by 'envelope' in the context of elm. Just stupid I guess. And don't forget, with trn 3.4 and the handy-dandy autoselection of your own posts, you can just save your own postings the next time you read after posting. With a little cleverness, you could probably set up your kill file to save them automatically on entering the group so you don't actually have to read them. >By not using elm there is another draw back and that is that you are >saving directly to a mailbox and consequently you lose any mail >filtering that you set up to organise your posts into their respective >mailboxes. Filtering...? So, if you can use elm, do you get the filtering you want? -M -- Martin J. Dellwo (610) 983-7396 E-mail: r06a661@bcc26.kodak.com, mdellwo@Kodak.COM Biophysics and Computational Chemistry Sterling Winthrop Pharmaceuticals Research Division
Re: Elm with trn?
Author: Robert Nicholson
Date: Thu, 17 Mar 1994 23:41
Date: Thu, 17 Mar 1994 23:41
67 lines
3804 bytes
3804 bytes
mdellwo@Kodak.COM wrote in news.software.readers,comp.mail.elm
>In article <2m6mdo$2ds@steffi.demon.co.uk>,
>Robert Nicholson <robert@steffi.demon.co.uk> wrote:
>>The beauty of this is that you are not using mail and consequently you
>>do not get the usual extra envelope with it's own Subject header.
>>Note: when using elm for a new post, it's impossible to have the Posts
>>Subject content in the _envelopes_ header. This means that you always
>>have the same subject for each post. This is very limiting and
>>defeats the purpose somewhat.
>
>I guess I for one am having a difficult time understanding exactly
>what you are asking about.
Dont know why most other people did.
Is this for a new thread started within
>trn using 'f', or sending out a posting using Pnews at the unix
>prompt?
It was needed for both.
I'm assuming the former. Then, if you can use elm at all,
>can't you change the subject before you edit the post, or after
>editing your message using the 'h' (edit headers) option in elm? I
>guess if you feed it a file directly, you don't get to any elm
>menus... And I'm not sure what is meant by 'envelope' in the context
>of elm. Just stupid I guess.
The point was there were two subject headers. and it wasn't possible
to have one based on the other. I don't like the idea of having to
edit two subject headers everytime I posted. Which I would have to do
because the first header is used in the mail and that's important too.
>
>And don't forget, with trn 3.4 and the handy-dandy autoselection of
>your own posts, you can just save your own postings the next time you
>read after posting. With a little cleverness, you could probably set
>up your kill file to save them automatically on entering the group so
>you don't actually have to read them.
Rather inefficient approach. I news.daily regularly. I elected to
use the AUTHORCOPY feature in Pnews... together with MAILRECORD for
replies. This works a treat.
>
>>By not using elm there is another draw back and that is that you are
>>saving directly to a mailbox and consequently you lose any mail
>>filtering that you set up to organise your posts into their respective
>>mailboxes.
>
>Filtering...? So, if you can use elm, do you get the filtering you
>want?
>
The point here is that before I was mailing the article to myself
and a procmail rule was putting it thru inews. Now that gave me an opportunity
to filter the mail based on the contents of the header and store it
appropriately. Unlike now where I'm using mbox.saver which saves
directly to a mailbox and so you lose filtering because you are no
longer using mail....
I hope all that is clear.
--
"You know what's wrong with you?" (Audrey Hepburn, Cary Grant)
"No, what?"
"Nothing" (Charade, 1963)
(ASCII for text only messages)
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