🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
5 messages
5 total messages Started by Torsten Schneider Sun, 20 Jul 1997 00:00
slrn: removing the signature
#35370
Author: Torsten Schneider
Date: Sun, 20 Jul 1997 00:00
13 lines
817 bytes
Is there a possibility to make slrn automatically remove the signature
when posting a followup/mail reply?

I don't see a need to include this in followups, so I would like slrn
to do this work for me.

-- 
Torsten Schneider
35216 Biedenkopf, Germany
http://www.mabi.de/~schneidt           Fax: +49-6461-92082

Re: slrn: removing the signature
#35390
Author: Sven Guckes
Date: Mon, 21 Jul 1997 00:00
38 lines
2181 bytes
schneidt@mabi.de (Torsten Schneider):
> Is there a possibility to make slrn automatically remove the signature when
> posting a followup/mail reply?  I don't see a need to include this in
> followups, so I would like slrn to do this work for me.

Well, this need not be a feature of slrn - every good editor should allow this.
Here is a mapping for Vi (and clones) to remove the signature:

	http://www.math.fu-berlin.de/~guckes/vim/rc :
	"
	"   ,kqs = kill quoted sig (to remove those damn sigs for replies)
	map ,kqs G?^> *-- $<CR>dG

The "<CR>" can be used literally for Vim - with other Vi clones
you need to enter this as ^V^M (control-v control-m).

This mapping assumes three things:
(1) The signature is indicated by "sigdashes",
    ie a line with dash-dash-space in it (no more, no less).
(2) The editor is called upon the *quoted* previous post.
    => search for "quoted sigdashes".
    NOTE:  The *standard* quote string is "> " (closing angle bracket, space).
(3) The signature is all text including and after the last occurrence of a
    sigdashes line (hence the backward search from the very end of the buffer).

Slrn users can test this mapping right away by using a Vi clone as editor 
and following up to this post.  :-)

Sven

-- 
 http://www.math.fu-berlin.de/~guckes/rfc/minimal.text.structure.html
 http://www.math.fu-berlin.de/~guckes/sig/
 http://www.math.fu-berlin.de/~guckes/slrn/
 http://www.math.fu-berlin.de/~guckes/vim/

Re: slrn and vim - removing the signature
#35425
Author: Sven Guckes
Date: Wed, 23 Jul 1997 00:00
26 lines
1620 bytes
sandy@herring.org (Sandy Herring):
> >	"   ,kqs = kill quoted sig (to remove those damn sigs for replies)
> >	map ,kqs G?^> *-- $<CR>dG
> Or, if your own .sig is already appended to the
> followup and you don't want to chomp it, use...
> 	map ,kqs G?^> *-- $<CR>d}

Oops - I overlooked that case.  Good point!  :-)

But then the own signature might be appended right after the quoted text, ie
without an empty line in between; in that case the "d}" would delete it, too.
So - how would you make sure that the mapping works in both cases?
Well, you could delete until the sigdashes of your own signature:

	map ,kqs G?^> *-- $<CR>d/^-- $/<C-M>

Of course this will fail if you do not use sigdashes yourself.  ;-)

> p.s.	thanks 1.0e+6 for all your advice re: slrn, vim & mutt, Sven!

You're welcome!  :-)

Sven

Re: slrn: removing the signature
#35455
Author: Sandy Herring
Date: Wed, 23 Jul 1997 00:00
25 lines
1456 bytes
On 21 Jul 1997 21:46:38 GMT, Sven Guckes <guckes@math.fu-berlin.de> wrote:
>schneidt@mabi.de (Torsten Schneider):
>> Is there a possibility to make slrn automatically remove the signature when
>> posting a followup/mail reply? [...]
[...]
>Here is a mapping for Vi (and clones) to remove the signature:
[...]
>	"   ,kqs = kill quoted sig (to remove those damn sigs for replies)
>	map ,kqs G?^> *-- $<CR>dG

Or, if your own .sig is already appended to the followup and you don't
want to chomp it, use...

	map ,kqs G?^> *-- $<CR>d}

cheers,
Sandy

p.s.	thanks 1.0e+6 for all your advice re: slrn, vim & mutt, Sven!
-- 
Sandy Herring               Tigard, Oregon           Peck of Pickled Pisces
sandy@herring.org       bigfish@sns-access.com       http://www.herring.org/

Re: slrn: removing the signature
#35720
Author: Sven Guckes
Date: Fri, 08 Aug 1997 00:00
45 lines
2248 bytes
schneidt@mabi.de (Torsten Schneider):
> I don't see a need to include [signatures] in followups, so I would like
> slrn to do this work for me.  Is there a possibility to make slrn
> automatically remove the signature when posting a followup/mail reply?

Well, this features is part of the followup "editing" -
so I suggest you add this feature with your editor.
Automatically removing part of the post may be unwanted
so it should not be a feature of the newsreader.

I'll append my commands for the editor Vim below..

Sven


=== http://www.math.fu-berlin.de/~guckes/vim/rc

" Part 6  - Inserting Special or Standard Text
" Part 6b - End of text - dealing with "signatures".
"
"	remove signatures
"
"     ,kqs = kill quoted sig (to remove those damn sigs for replies)
  map ,kqs G?^> *-- $<CR>dG
"     ,kqs = kill quoted sig unto start of own signature:
" map ,kqs G?^> *-- $<CR>d/^-- $/<C-M>
"
"      ,s = "sign" - read in signature file (requires manual completion)
  nmap ,s :r!agrep -d "^-- $" ~/public_html/sig/SIGS<ESC>b
"
"    ,S = signature addition of frequently used signatures
  nmap ,SE :r!agrep -d "^-- $" comp.mail.elm ~/public_html/sig/SIGS<ESC>b
  nmap ,SM :r!agrep -d "^-- $" WOOF ~/public_html/sig/SIGS<ESC>b
  nmap ,SV :r!agrep -d "^-- $" IMproved ~/public_html/sig/SIGS<ESC>b
"
"      ,t = "text" - read in text file (requires manual completion)
  nmap ,t :r ~/public_html/txt/
"
" MUTT: Auto-kill signatures for replies
" map ,kqs G?^> *-- $<C-M>dG
" autocmd BufRead mutt* :normal ,kqs
"

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