Thread View: news.software.nn
3 messages
3 total messages
Started by Zebee Johnstone
Thu, 22 Oct 1992 00:59
different sigs for different groups
Author: Zebee Johnstone
Date: Thu, 22 Oct 1992 00:59
Date: Thu, 22 Oct 1992 00:59
50 lines
2329 bytes
2329 bytes
I posted this on newusers.questins, then realised that there must be an
nn group, so here goes:
I read in the nn FAQ that it is possible to change your sig
depending on the group you are in.
YOu have to get a copy of the aux file, put it in your $home/.nn directory,
make changes to a couple of nn variables, and write some code.
I did that, and it doesn't seem to work. Here are relevant bits:
this is code out of aux, with my change noted with |
When I post to alt.test, it still uses .signature, not .scasig.
Any ideas folks?
if [ ${APPEND_SIG} = "true" -a -f $HOME/.signature ] ; then
if ${QUERY_SIG} ; then
${AWK} 'END{printf "Append .signature? (y) "}' < /dev/null
read ans
else
ans=y
fi
case $ans in
''|y*|Y*)
echo "-- " >> $WORK
| if ${GROUP} = "alt.test"
| cat $HOME/.scasig >> $WORK
| else
cat $HOME/.signature >> $WORK
| fi
;;
esac
fi
I freely admit that I know three fifths of bugger all about script programming,
so have probably made a silly mistake.
I also note that if you change the nn variables as stated in the FAQ, then
looking at them later, it has made substitutions. So what should the
variable values be? Does it make a difference if the news server
is a different machine to the one I'm on?
--
----------------------------------------------------------------------
Zebee Johnstone DoD #605 | You don't own an Italian motorcycle
Adelaide City Council | - you merely have the privilege
zebee@itd.adelaide.edu.au | of paying its bills....
Re: different sigs for different groups
Author: Thomas Aaron Insel
Date: Fri, 23 Oct 1992 00:24
Date: Fri, 23 Oct 1992 00:24
25 lines
1699 bytes
1699 bytes
zebee@sirius.ucs.adelaide.edu.au (Zebee Johnstone) writes:
> When I post to alt.test, it still uses .signature, not .scasig.
Someone correct me if I'm wrong, but you just patched the mail portion
of aux. You need to patch the posting part, which doesn't normally
put a signature in at all. This is a fragment of my aux script. (Be
sure to remove ~/.signature, so you don't get a double signature).
case "$OPERATION" in
follow|post)
cat $HOME/.sig1 >> $WORK
if ${NOVICE} ; then
echo "Be patient! Your new article will not show up immediately."
case ${WAIT_PERIOD-0} in
0|1) WAIT_PERIOD=2 ;;
esac
fi
;;
esac
--
Thomas Insel (tinsel@uiuc.edu)
"Acceptance without proof is the fundamental characteristic of Western
religion, Rejection without proof is the fundamental characteristic of
Western science." -- Gary Zukav, "The Dancing Wu Li Masters"
Re: different sigs for different groups
Author: Sami-Jaakko Tikka
Date: Fri, 23 Oct 1992 23:07
Date: Fri, 23 Oct 1992 23:07
37 lines
2252 bytes
2252 bytes
In <zebee.719715589@sirius.ucs.adelaide.edu.au> zebee@sirius.ucs.adelaide.edu.au (Zebee Johnstone) writes:
>| if ${GROUP} = "alt.test"
>| cat $HOME/.scasig >> $WORK
>| else
> cat $HOME/.signature >> $WORK
>I freely admit that I know three fifths of bugger all about script programming,
>so have probably made a silly mistake.
Yes that's it. aux is a /bin/sh shell script. In /bin/sh the if
statement should read
if [ ${GROUP} = "alt.test" ]; then
cat <something>
else
cat <something else>
fi
See 'man sh' for more details.
>I also note that if you change the nn variables as stated in the FAQ, then
>looking at them later, it has made substitutions. So what should the
>variable values be? Does it make a difference if the news server
>is a different machine to the one I'm on?
Eh? I'm afraid I don't understand (but then again English isn't my
native tongue :). Anyway whether it makes a difference depends on how
your nn is configured at compile-time. Nn can read news via NNTP or
from a local spool directory (which of course could be NFS-mounted and
then it wouldn't be local any more :). So you see there is no easy
answer.
--
Sami.Tikka@hut.fi "Live Long and Prosper!"
---------------------------------------------------------------------------
"I think there's a world market for about 5 computers."
- Thomas J. Watson, Chairman of the Board, IBM (around 1948)
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