Article View: news.software.nn
Article #2038Re: Deluxe Sigs in NN
From: David F. Skoll
Date: Fri, 30 Aug 1991 13:53
Date: Fri, 30 Aug 1991 13:53
76 lines
3081 bytes
3081 bytes
In <1991Aug30.021038.1235@unlinfo.unl.edu> mgleason@cse.unl.edu (Mike Gleason)
writes:
>Here's another message Kim can clip 'n' save for later. I'd like to have
>different signatures for different groups. It would be nice if I could
>specify a signature file along with the name of the save file in the 'init.'
>The ELM mailer allows you specify a localsignature and a remotesignature;
>I could settle for that if I had to :-) Even better, if the signature file
>I specify is a directory, perhaps nn could pick a sig at random from that
>directory.
I've modified the "aux" program included with nn to run my 'thought' program
and generate a random signature. (See the bottom of this article.) You can
set the 'news-script' variable to run the modified "aux" program. Below is
my patch for "aux"; play with it as you wish.
-------------- Cut Here ---------- Cut Here ---------- Cut Here -------------
*** /usr/local/lib/nn/aux Thu Oct 4 15:21:23 1990
--- aux Thu Aug 29 16:09:35 1991
***************
*** 167,173 ****
# call editor to enter at line $ED_LINE of work file
case `basename "${EDITOR-vi}"` in
! vi|emacs|emacsclient )
# Berkeley vi display editor
# GNU emacs disply editor
${EDITOR-vi} +${ED_LINE} $WORK
--- 167,173 ----
# call editor to enter at line $ED_LINE of work file
case `basename "${EDITOR-vi}"` in
! vi|emacs*|emacsclient )
# Berkeley vi display editor
# GNU emacs disply editor
${EDITOR-vi} +${ED_LINE} $WORK
***************
*** 285,290 ****
--- 285,294 ----
fi
done
+ if [ ${APPEND_SIG} = "true" -a -f $HOME/.nn/newsig.rc ] ; then
+ thought $HOME/.nn/newsig.rc > $HOME/.signature
+ fi
+
if [ ${APPEND_SIG} = "true" -a -f $HOME/.signature ] ; then
if ${QUERY_SIG} ; then
${AWK} 'END{printf "Append .signature? (y) "}' < /dev/null
***************
*** 294,301 ****
fi
case $ans in
''|y*|Y*)
! echo "-- " >> $WORK
cat $HOME/.signature >> $WORK
;;
esac
fi
--- 298,308 ----
fi
case $ans in
''|y*|Y*)
! echo "--" >> $WORK
! echo "David F. Skoll" >> $WORK
! echo "" >> $WORK
cat $HOME/.signature >> $WORK
+ rm -f $HOME/.signature
;;
esac
fi
-------------- Cut Here ---------- Cut Here ---------- Cut Here -------------
--
David F. Skoll
Why is Mandy so hypnotic? Because Joan helps her lunatic log.
Technical Details
Message-ID:
<dfs.683560439@reg>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!gmdzi!unido!mcsun!uunet!cs.utexas.edu!utgpu!cunews!dfsReferences:
<1991Aug30.021038.1235@unlinfo.unl.edu>Show Full Headers
Complete Article Headers
Message-ID: <dfs.683560439@reg> Subject: Re: Deluxe Sigs in NN Date: Fri, 30 Aug 1991 13:53:59 +0000 From: dfs@doe.carleton.ca (David F. Skoll) References: <1991Aug30.021038.1235@unlinfo.unl.edu> 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!gmdzi!unido!mcsun!uunet!cs.utexas.edu!utgpu!cunews!dfs Newsgroups: news.software.nn Sender: news@cunews.carleton.ca Organization: Carleton University Lines: 76