Thread View: news.software.nn
3 messages
3 total messages
Started by John Red-Horse
Wed, 01 Sep 1993 18:28
.signature Stuff Resolved
Author: John Red-Horse
Date: Wed, 01 Sep 1993 18:28
Date: Wed, 01 Sep 1993 18:28
90 lines
3030 bytes
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
Re: .signature Stuff Resolved
Author: Sven Guckes
Date: Mon, 06 Sep 1993 05:32
Date: Mon, 06 Sep 1993 05:32
14 lines
1303 bytes
1303 bytes
jrredho@universe.digex.net (John Red-Horse) writes: >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. >Anyway, FWIW, here's my resolution to the problem: Was *was* your question? And why does it make changes to the code necessary? I don't see why you have to make changes to the code when your question regards only *how* something was coded. Please give a more detailed description of the problem and the answer. Sven :)
Re: .signature Stuff Resolved
Author: John Red-Horse
Date: Mon, 06 Sep 1993 15:50
Date: Mon, 06 Sep 1993 15:50
57 lines
3153 bytes
3153 bytes
Sven Guckes <guckes@inf.fu-berlin.de> writes: >Was *was* your question? Sven, My original question regarded how nn (and, as it turns out, inews) deals with one's .signature file. Specifically, I didn't want my .signature to be appended for certain groups, or group hierarchies such as say ``alt''. I would turn on the query-signature variable and at the prompt I would answer ``n''. And yet I still got my default .signature appended. I had looked in the man page and in the FAQ and had found nothing obvious that addressed my specific question. However, further digging did show me the problem: inews was appending my .signature independent of action in nn. (This was answered in the ``double signature'' FAQ, but again this was not my original question.) Further digging gave me the following idea: why not have a default .signature for all of nn and the possibility of overriding it with (1) a group specific, or (2) a hierarchy specific one. So, I moved ~/.signature to ~/.nn/.signature and created different .sig's for ~/.nn/rec, ~/.nn/rec.outdoors.fishing. Given the existence of these files, my new aux script, and the accompanying init file settings, do the following: (1) If I'm reading say comp.sys.hp, I get prompted to append ~/.nn/.signature. (2) If I'm reading say rec.rugby, I get prompted to append ~/.nn/rec/.signature; and finally, (3) If I'm reading rec.outdoors.fishing, I get prompted to append ~/.nn/rec.outdoors.fishing/.signature. To finalize this whole scenario, in my default mail reader (rmail in gnu emacs) I created a string in the variable ``mail-signature'' that contained my former default .signature information. >And why does it make changes to the code necessary? >I don't see why you have to make changes to the code >when your question regards only *how* something was coded. I threw the question out onto the forum and I got no replies. If you can tell me a way that I could've gotten things to work out differently, I'd be glad to hear it! BTW, I changed no actual source code---only the aux script and some variable settings in my init file. >Please give a more detailed description of the problem and the answer. See above. Thanks for your interest, john -- John Red-Horse jrredho@sandia.gov Structural Dynamics & Vibration Control Sandia National Laboratories (505)845-9190
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