<<< Date Index >>>     <<< Thread Index >>>

Re: Strip SIG on reply



* On 2003.12.10, in <20031210220648.GG14359@xxxxxxxxxxxxxxxxxxxxxxxxx>,
*       "Todd" <Freedom_Lover@xxxxxxxxx> wrote:
> Sascha Andres wrote:
> > I want to strip all signatures on reply. While reading this job is
> > done by t-prot, so I need no solution for this one.  The sed stuff
> > is clear, is there any reply-hook thing that could make this?
> 
> I think this is best handled by your editor.  If you use vim, Cedric

I'd agree with that; the other approach would be to redefine $editor to
a filter that invokes your real editor. That's just messy.

I use genuine vi, rather than vim. Here's what I have in my .exrc for
this purpose:

"" Remove quoted signature, up to blank line
map ; :/^[      ]*> -- *$/;?^[  >][     >]*$?;.,/^[     ]*$/-1d

(If you use this copy it literally, not with cut and paste. It contains
TAB characters.) Pressing the semicolon key finds a quoted signature
and deletes up to the next blank line. If you do this first thing upon
entering the editor, it essentially deleted a quoted sig, leaving yours
in place, and positions for you to append. It does not handle multiple
levels of quoted sigs, though you could adapt it to fairly easily.


> (And then the next week and a half will be spent on off topic
> discussions about whose editor can jump taller buildings in fewer
> bounds... :)

Indeed -- or worse. I predict worse.

-- 
 -D.    dgc@xxxxxxxxxxxx
 University of Chicago > NSIT > VDN > ENSS > ENSA > You are here
 .  .  .  .  .  .  .
 always line up dots