🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nn
Article #4731

.signature Stuff Resolved

#4731
From: John Red-Horse
Date: Wed, 01 Sep 1993 18:28
90 lines
3030 bytes
A couple of days ago, I posted a message regarding the how
nn (and, as it turns out inews) deal with one's .signature file.  The
information that I asked about could've been gleaned from the FAQ (I
actually did try to look there before posting my question) but it was
not readily obvious to me when I looked.  Anyway, FWIW, here's my
resolution to the problem:

From my init file:
#
# Get the .sig stuff correct
#
 set append-signature-mail on
 set append-signature-post on
 set mail-script ~/.nn/aux
 set news-script ~/.nn/aux
#

And the diffs between my aux file and the one in the distribution:

*** aux	Tue Aug 31 23:29:17 1993
--- /usr/local/news/nn/aux	Sat Jan 23 19:06:12 1993
***************
*** 302,333 ****
    fi
  done
  
! #
! # inews appears to append ~/.signature if it exists,
! # so let's avoid this by making nn search for
! # ~/.nn/.signature.  At the same time, let's modify
! # the scheme to allow for ``local'' .signature files.
! #
! #  first determine the root of the hierarchy...
! #
! FAMG=`expr $G : '\([^.]*\)\.'`
! #
! #  then step through in a limited fashion...
! #
! if [ -f $HOME/.nn/${G}/.signature ] ; then
!    SIGFILE=$HOME/.nn/${G}/.signature
! elif [ -f $HOME/.nn/$FAMG/.signature ] ; then
!    SIGFILE=$HOME/.nn/$FAMG/.signature
! else
!    SIGFILE=$HOME/.nn/.signature
! fi
! #
! #  finally, let me know which .signature file
! #  has been found...
! #
! if [ ${APPEND_SIG} = "true" -a -f $SIGFILE ] ; then
    if ${QUERY_SIG} ; then
!     ${AWK} 'END{printf "Append %s? (y) ", SIGFILE}' SIGFILE=$SIGFILE < /dev/null
      read ans
    else
      ans=y
--- 302,310 ----
    fi
  done
  
! 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
***************
*** 335,341 ****
    case $ans in
    ''|y*|Y*)
      echo "-- " >> $WORK
!     cat $SIGFILE >> $WORK
      ;;
    esac
  fi
--- 312,318 ----
    case $ans in
    ''|y*|Y*)
      echo "-- " >> $WORK
!     cat $HOME/.signature >> $WORK
      ;;
    esac
  fi


I hope that this helps folks,
john
-- 
John Red-Horse                         jrredho@sandia.gov
Structural Dynamics & Vibration Control 
Sandia National Laboratories                (505)845-9190
Technical Details
Message-ID: <jrredho.746907746@universe>
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!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!digex.com!universe!jrredho

Show Full Headers
Complete Article Headers
Message-ID: <jrredho.746907746@universe>
Subject: .signature Stuff Resolved
Date: Wed, 01 Sep 1993 18:28:41 +0000
From: jrredho@universe.digex.net (John Red-Horse)
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!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!europa.eng.gtefsd.com!uunet!digex.com!universe!jrredho
Newsgroups: news.software.nn
Organization: Sandia National Laboratories
Lines: 91
Reply-To: jrredho@sandia.gov
NNTP-Posting-Host: universe.digex.net