🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #3257

different sigs for different groups

#3257
From: Zebee Johnstone
Date: Thu, 22 Oct 1992 00:59
50 lines
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.... 
Technical Details
Message-ID: <zebee.719715589@sirius.ucs.adelaide.edu.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!munnari.oz.au!yoyo.aarnet.edu.au!news.adelaide.edu.au!sirius.ucs.adelaide.edu.au!zebee

Show Full Headers
Complete Article Headers
Message-ID: <zebee.719715589@sirius.ucs.adelaide.edu.au>
Subject: different sigs for different groups
Date: Thu, 22 Oct 1992 00:59:49 +0000
From: zebee@sirius.ucs.adelaide.edu.au (Zebee Johnstone)
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.nn.mbox.zip!sparky!uunet!charon.amdahl.com!pacbell.com!sgiblab!munnari.oz.au!yoyo.aarnet.edu.au!news.adelaide.edu.au!sirius.ucs.adelaide.edu.au!zebee
Newsgroups: news.software.nn
Organization: The University of Adelaide
Lines: 50
Distribution: world
NNTP-Posting-Host: sirius.itd.adelaide.edu.au