🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nn
4 messages
4 total messages Started by Georg Schwarz Mon, 30 Sep 1996 00:00
signature other than ~/.signature?
#8023
Author: Georg Schwarz
Date: Mon, 30 Sep 1996 00:00
17 lines
1389 bytes
Is it somehow possible to make nn use a different signature file than
~/.signature? The problem is that inews is automatically including
that file. So if you have any non-ASCII characters in your signature
nn does not get to know about them and chooses the wrong encoding for the
article's body if they are the only non-ASCII characters.
Maybe if I chose to make nn include the signature itself it might
work correctly... However, as long as it is called ~/.signature, inews
will append it a second time.

BTW, this article should be an example for that dillemma...
-- 
Georg Schwarz (schwarz@physik.tu-berlin.de, kuroi@cs.tu-berlin.de, PGP 2.6ui)
Institut f�r Theoretische Physik  +49 30 314-24254   FAX -21130   IRC kuroi
Technische Universit�t Berlin  http://itp1.physik.tu-berlin.de/~schwarz/

Re: signature other than ~/.signature?
#8026
Author: Sven Guckes
Date: Mon, 30 Sep 1996 00:00
32 lines
1925 bytes
schwarz@physik.tu-berlin.de (Georg Schwarz):
> >        map ,s :r!agrep -d "^-- $" ~/public_html/sig/SIGS<ESC>b
> so do I explecitely have to include it each time I write an article?

Well, yes, but if your editor is smart enough then you can automate this.
With VIM you can append your signature with this ":autocmd":

	autocmd BufRead nn.* :normal G|:r ~/.signature^M

Just stuff this into your vimrc and you shall see your signature appended
automagically every time you compse a new post.  :-)

> Can't I make nn do that automatically
> (restricting myself to just one signature)?

Sure - hack the code.  :-)

But you need not restrict yourself to one signature with the method I described.
You could let VIM add a signature by default (:autocmd) and use a mapping
that will extract a signature from your signature collection (",s").

Sven

-- 
Sven Guckes@math.fu-berlin.de - VIM ("Vi IMproved")  | Available for Amiga,
VIM Latest version : VIM4.2 - released on 960622     | Atari, DOS, Macintosh,
VIM Pages: http://www.math.fu-berlin.de/~guckes/vim/ | OS/2, UNIX, VAX, VMS,
VIM FAQ:   http://www.grafnetix.com/~laurent/vim     | Windows NT, Windows 95.


Re: signature other than ~/.signature?
#8027
Author: Georg Schwarz
Date: Mon, 30 Sep 1996 00:00
43 lines
2127 bytes
guckes@somerville.math.fu-berlin.de (Sven Guckes) writes:

>Good point!

>Suggestion:
>	Let NN include the signature into the edit buffer.
>	(All programs which append a sig should do this, btw).

I'd really prefer that.

>Workaround:
>	Append the signature of your choice using "agrep",
>	thus including it in the edit buffer.

>Usage:
>Put all your signatures into one file.  Start every signature with a "sigdashes
>line" (ie "-- " and nothing else) and that each contains a unique word, eg
>"nn.sig" for your signature that you append to post for news.software.nn.
>Now jump to the end of the file and read in the sig using agrep.
>Assuming you are using Vi (or a clone) you can use the "read" command like this:

>        :r!agrep -d "^-- $" keyword sig_file

>I use this with VIM:

>        map ,s :r!agrep -d "^-- $" ~/public_html/sig/SIGS<ESC>b

so do I explecitely have to include it each time I write an article?
Can't I make nn do that automatically (restricting myself to just one
signature)?

>All I have to give is the keyword, eg "nn.sig". (compare sig below)

>Here is my "signature file" as an example:
>	http://www.math.fu-berlin.de/~guckes/sig/SIGS 

-- 
Georg Schwarz (schwarz@physik.tu-berlin.de, kuroi@cs.tu-berlin.de, PGP 2.6ui)
Institut f�r Theoretische Physik  +49 30 314-24254   FAX -21130   IRC kuroi
Technische Universit�t Berlin  http://itp1.physik.tu-berlin.de/~schwarz/

Re: signature other than ~/.signature?
#8030
Author: Sven Guckes
Date: Mon, 30 Sep 1996 00:00
49 lines
2445 bytes
schwarz@physik.tu-berlin.de (Georg Schwarz):
> Is it somehow possible to make nn use a different signature file than
> ~/.signature?  The problem is that inews is automatically including that
> file. So if you have any non-ASCII characters in your signature nn does not
> get to know about them and chooses the wrong encoding for the article's body
> if they are the only non-ASCII characters.

Good point!

Suggestion:
	Let NN include the signature into the edit buffer.
	(All programs which append a sig should do this, btw).

Workaround:
	Append the signature of your choice using "agrep",
	thus including it in the edit buffer.

Usage:
Put all your signatures into one file.  Start every signature with a "sigdashes
line" (ie "-- " and nothing else) and that each contains a unique word, eg
"nn.sig" for your signature that you append to post for news.software.nn.
Now jump to the end of the file and read in the sig using agrep.
Assuming you are using Vi (or a clone) you can use the "read" command like this:

        :r!agrep -d "^-- $" keyword sig_file

I use this with VIM:

        map ,s :r!agrep -d "^-- $" ~/public_html/sig/SIGS<ESC>b

All I have to give is the keyword, eg "nn.sig". (compare sig below)

Here is my "signature file" as an example:
	http://www.math.fu-berlin.de/~guckes/sig/SIGS 

Sven

-- 
Sven Guckes guckes@math.fu-berlin.de [960820] nn.sig
NN - One of the best newsreaders around!
NN Pages:         http://www.math.fu-berlin.de/~guckes/nn/
NN primer:        http://www.math.fu-berlin.de/~guckes/nn/nn.getting.started
NN FAQ:           http://www.math.fu-berlin.de/~guckes/nn/nn.faq
NN wishlist:      http://www.math.fu-berlin.de/~guckes/nn/nn.wishlist.html
NN sample setup:  http://www.math.fu-berlin.de/~guckes/nn/init


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