Article View: news.software.nn
Article #2659Re: .signature file name and location
From: Gary Morris
Date: Wed, 08 Apr 1992 17:33
Date: Wed, 08 Apr 1992 17:33
48 lines
2417 bytes
2417 bytes
In <5622@darmstadt.gmd.de> kostka@darmstadt.gmd.de (Bernd Kostka) writes: >is there a way to tell nn where to look for a signature file? >What I would like to have is something like > setenv SIGNATURE $HOME/dots/signature >or in the ~/.nn/init > set signature ~/dots/signature I've been working on the nn source to make a new variable "signature-file" to let you set the name of your .signature. It works ok but there are some oddities with it. First, because (most?) inews automatically appends your .signature file, if you ask nn to do it, you get two copies of the .signature file on your posting. The easiest way around this is to rename your .signature to be .sig (or whatever) and then put "set signature-file ~/.sig" in your .nn/init file. Then I setup some "on entry" macros to change my .sig file depending on what newsgroup I was in. Like this: on entry :set signature-file ~/.sig end on entry rec.radio* :set signature-file ~/.sig.radio end on entry news.* :set signature-file ~/.sig.news end This works but with a couple small problems. If you are reading a newsgroup with nn, and decide to ":post" to another group, you get the .sig for the group you are in not the one you post to. Also, if you post using the "nnpost" command, none of the "on entry" macros are run, so you always get the default .sig file. I have the patch complete, and have been using it for a few days now. It works fine for me, knowing its limitations. Is it useful to others even with these problems? Should I post it (it is short)? --GaryM -- Gary Morris Internet: garym@telesoft.com Ada Software Development UUCP: uunet!telesoft!garym TeleSoft, San Diego, CA Phone: +1 619-457-2700
Technical Details
Message-ID:
<1992Apr8.173316.3528@telesoft.com>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!telesoft!garymReferences:
<5622@darmstadt.gmd.de>Show Full Headers
Complete Article Headers
Message-ID: <1992Apr8.173316.3528@telesoft.com> Subject: Re: .signature file name and location Date: Wed, 8 Apr 1992 17:33:16 GMT From: garym@telesoft.com (Gary Morris @lone) References: <5622@darmstadt.gmd.de> 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!telesoft!garym Newsgroups: news.software.nn Summary: nn patch to add signature_file variable Reply-To: g@telesoft.com Organization: TeleSoft, San Diego, CA, USA Lines: 48