Thread View: news.software.readers
6 messages
6 total messages
Started by Chris 'Coz' Costello
Fri, 31 Jul 1998 00:00
Two trn questions...
Author: Chris 'Coz' Costello
Date: Fri, 31 Jul 1998 00:00
Date: Fri, 31 Jul 1998 00:00
39 lines
2171 bytes
2171 bytes
Hey there,
I've been fiddling with my .trninit file, trying to get this thing
to behave the way I want to, and I've encountered one problem and
one thing that I don't know if I can do or not. I haven't been
able to find a satisfactory answer in existing materials, and I'm
a little wary of experimenting, lest I irreparably screw things
up.
First, I'm trying to change the killfile locations as advocated in
the FAQ, but when I set KILLLOCAL="%p/Kill/%C", I get a message upon
starting trn that reads something like "restriction KILLLOCAL=
"%p/Kill/%C" removed," then "End of newsgroups - what next?" I
can get back to the group selection without much problem, but this
doesn't seem right...not to mention the fact that when I edit a
local kill file, it's still in the wrong place. What gives?
Should I specify the path more explicitly, such as "~/News/Kill/%C"?
Second, and I'm planning to answer part of this question in the process
of posting, is there a way to automatically save your own posts to
a file in trn? I could add a Bcc: header that always has my address,
but I'd rather go to a file...does trn support Fcc:, and moreover,
would Fcc: %p/%C in the header specs append posts to a file with
the name of the group?
Thanks in advance...and it wouldn't hurt to cc: me on the replies,
as I haven't been making it to USENET as often as I might like.
Later,
COZ
NP: _Fire Merchants_
--
Chris 'Coz' Costello || http://www.tezcat.com/~coz || coz@tezcat.com
"H I P N E S S I S T R A N S I E N T...you've got to change
in order to be continually hip." - Vinnie Colaiuta
Re: Two trn questions...
Author: Kim DeVaughn
Date: Sat, 01 Aug 1998 00:00
Date: Sat, 01 Aug 1998 00:00
49 lines
2722 bytes
2722 bytes
In article <6pt7d8$ml2@xochi.tezcat.com>,
Chris 'Coz' Costello <coz@enteract.com> wrote:
|
| First, I'm trying to change the killfile locations as advocated in
| the FAQ, but when I set KILLLOCAL="%p/Kill/%C", I get a message upon
| starting trn that reads something like "restriction KILLLOCAL=
| "%p/Kill/%C" removed," then "End of newsgroups - what next?" I
| can get back to the group selection without much problem, but this
| doesn't seem right...not to mention the fact that when I edit a
| local kill file, it's still in the wrong place. What gives?
| Should I specify the path more explicitly, such as "~/News/Kill/%C"?
You shouldn't have to. I just tried putting: KILLLOCAL = "%p/Kill/%C"
in my trnrc file, and it worked fine (that's using trn4-test66).
You didn't say what revision of trn you're using, but if it's v3.6 (or
earlier), I think you may need to prepend a -E to the variable like this:
-EKILLLOCAL = "%p/Kill/%C"
and you may need to remove the spaces on either side of the "=" ... I
don't recall the precise syntax.
| Second, and I'm planning to answer part of this question in the process
| of posting, is there a way to automatically save your own posts to
| a file in trn? I could add a Bcc: header that always has my address,
| but I'd rather go to a file...does trn support Fcc:, and moreover,
| would Fcc: %p/%C in the header specs append posts to a file with
| the name of the group?
Heh. See man Pnews, and look at the AUTHORCOPY environment variable.
Pnews (which is invoked by trn) is actually what posts articles, so
you'll need to set the env var in your shell's startup file:
setenv AUTHORCOPY ~/News/Outgoing for tcsh/csh/etc, or
export AUTHORCOPY=$HOME/News/Outgoing for sh/ksh/etc
There is a similar env var for emailed R(eplies) ... see man Rnmail.
/kim
==========================================================================
"Remember that it is dangerous to be right, when the government is wrong."
--Voltaire's Sim
Re: Two trn questions...
Author: Chris 'Coz' Costello
Date: Mon, 03 Aug 1998 00:00
Date: Mon, 03 Aug 1998 00:00
47 lines
2229 bytes
2229 bytes
And such were the words of Kim DeVaughn <kimdv@best.com>...
>You shouldn't have to. I just tried putting: KILLLOCAL = "%p/Kill/%C"
>in my trnrc file, and it worked fine (that's using trn4-test66).
>
>You didn't say what revision of trn you're using, but if it's v3.6 (or
>earlier), I think you may need to prepend a -E to the variable like this:
>
>-EKILLLOCAL = "%p/Kill/%C"
>
>and you may need to remove the spaces on either side of the "=" ... I
>don't recall the precise syntax.
I think it's 3.6...adding the "-E" worked just fine. Thanks.
>Heh. See man Pnews, and look at the AUTHORCOPY environment variable.
That man page doesn't seem to be on either ISP, unfortunately,
although I might not have capitalized the "P".
>Pnews (which is invoked by trn) is actually what posts articles, so
>you'll need to set the env var in your shell's startup file:
>
> setenv AUTHORCOPY ~/News/Outgoing for tcsh/csh/etc, or
That worked. Thanks again. I don't suppose there's a sneaky way
to save to different files for different groups? The placeholders
didn't work here, which wasn't all that surprising. Not a totally
big deal, as I can live with it all being in one file.
>There is a similar env var for emailed R(eplies) ... see man Rnmail.
I don't seem to have those man pages either...could you give me
a hint?
And again, thanks for the info.
Later,
COZ
NP: The Police, _Message in a Box_
--
Chris 'Coz' Costello || http://www.tezcat.com/~coz || coz@tezcat.com
"H I P N E S S I S T R A N S I E N T...you've got to change
in order to be continually hip." - Vinnie Colaiuta
Re: Two trn questions...
Author: Kim DeVaughn
Date: Tue, 04 Aug 1998 00:00
Date: Tue, 04 Aug 1998 00:00
39 lines
2026 bytes
2026 bytes
In article <6q5d00$pt3@xochi.tezcat.com>, Chris 'Coz' Costello <coz@xochi.tezcat.com> wrote: | | And such were the words of Kim DeVaughn <kimdv@best.com>... | > | >You didn't say what revision of trn you're using, but if it's v3.6 (or | I think it's 3.6...adding the "-E" worked just fine. Thanks. The v(ersion) cmd from (say) a newsgroup selection line will tell you the version number. Glad the -E was the fix you needed. | > setenv AUTHORCOPY ~/News/Outgoing for tcsh/csh/etc, or | | That worked. Thanks again. I don't suppose there's a sneaky way | to save to different files for different groups? The placeholders | didn't work here, which wasn't all that surprising. Not a totally | big deal, as I can live with it all being in one file. Not unless you do some hacking on Pnews itself. Shouldn't be too hard, as I think trn already passes the group name to Pnews, but you'd need to make your own copy of Pnews, and futz with it a bit (it's a /bin/sh script, BTW). | >There is a similar env var for emailed R(eplies) ... see man Rnmail. | | I don't seem to have those man pages either...could you give me | a hint? setenv MAILRECORD ~/foo /kim =================================================== "Send lawyers, guns, and money ..." --Warren Zevon
Re: Two trn questions...
Author: Conrad Sabatier
Date: Tue, 04 Aug 1998 00:00
Date: Tue, 04 Aug 1998 00:00
29 lines
1595 bytes
1595 bytes
In article <6q5d00$pt3@xochi.tezcat.com>, Chris 'Coz' Costello <coz@xochi.tezcat.com> wrote: > >That worked. Thanks again. I don't suppose there's a sneaky way >to save to different files for different groups? The placeholders >didn't work here, which wasn't all that surprising. Not a totally >big deal, as I can live with it all being in one file. You can set environment variables on entering and leaving a group using the following syntax in the *local* killfile for a group: &-EVARIABLE=whatever X&-EVARIABLE=another-whatever The first line is invoked on entering the group, the second one on exiting. This is a handy way to temporarily change a variable within a group and then restore it to some global value on exiting the group. So, for instance, you could do: &-EAUTHORCOPY=/path/to/authorcopy/for/this/group X&-EAUTHORCOPY=/default/path/for/authorcopy The same can be done with SAVEDIR and any other environment variables trn understands. HTH
Re: Two trn questions...
Author: Kim DeVaughn
Date: Wed, 05 Aug 1998 00:00
Date: Wed, 05 Aug 1998 00:00
16 lines
1259 bytes
1259 bytes
In article <6q8aua$q8a$1@dolphin.neosoft.com>, Conrad Sabatier <conrads@neosoft.com> wrote: | | You can set environment variables on entering and leaving a group using | the following syntax in the *local* killfile for a group: Ah yes ... I always forget about using that trick ...! Thanks for the reminder ... /kim =============================================================================== "You live and you learn. Or you don't live long." --Lazarus Long (paraphrased)
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