Thread View: news.software.nn
4 messages
4 total messages
Started by Bernd Kostka
Tue, 31 Mar 1992 09:15
.signature file name and location
Author: Bernd Kostka
Date: Tue, 31 Mar 1992 09:15
Date: Tue, 31 Mar 1992 09:15
28 lines
1371 bytes
1371 bytes
Hi everybody, is there a way to tell nn where to look for a signature file? I.e., what do I do if I want my signature file to have any other name than .signature or if I want to put it into any other directory than my home directory? What I would like to have is something like setenv SIGNATURE $HOME/dots/signature or in the ~/.nn/init set signature ~/dots/signature I didn't find any reference to either of these, but is there a way to get a similar effect? Thanks for your ideas. Bernd ----- Bernd Kostka Internet: kostka@darmstadt.gmd.de GMD - IPSI X.400 : kostka@ipsi.darmstadt.gmd.dbp.de Dolivostrasse 15 Phone : ++49-6151-869-862 D-6100 Darmstadt, Germany Fax : -818
Re: .signature file name and location
Author: Jonathan Berlinger
Date: Mon, 06 Apr 1992 07:46
Date: Mon, 06 Apr 1992 07:46
10 lines
957 bytes
957 bytes
kostka@darmstadt.gmd.de (Bernd Kostka) writes: >I.e., what do I do if I want my signature file to have any other name >than .signature or if I want to put it into any other directory than my >home directory? How about making your .signature a soft link (ln -s) to wherever? -- Jon Berlinger "Shade and Sweet Water" yehuda@cs.huji.ac.il
Re: .signature file name and location
Author: 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
Re: .signature file name and location
Author: Bill Wohler
Date: Tue, 14 Apr 1992 14:04
Date: Tue, 14 Apr 1992 14:04
27 lines
1663 bytes
1663 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? this is in the faq, although i admit i need to give this paragraph a proper subject. ----- If you want nn to append your .signature file, you can copy nn's aux file (ie. /usr/local/lib/nn/aux) to your .nn directory and set the mail-script and news-script variables to ~/.nn/aux. In your copy of the aux script, you can either specify a different place for your .signature file (like $HOME/.nn/signature) or you can get fancy: you can use specific .signatures for certain groups, or use the output of a program. ----- i just found out that the newsgroup name is available in the aux script in the variable "G". sorry gary, you didn't have to change the sources. however, if the answer above is failing in some category, let me know so we can fix it. Bill Wohler <wohler@sap-ag.de> <sapwdf!wohler> Heidelberg Red Barons Ultimate Frisbee Team
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