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

Re: send hook issues



On Thu, Oct 27, 2005 at 12:04:01PM -0700, jhelfman@xxxxxxxxxxxxxx
wrote:
> Is there a send hook of some sort to automatically take out the
> signatures in replies??

This is probably more appropriate for your editor to handle. I use
vim to compose my messages; here's one way to get rid of all but the
last signature (which is presumably your own).

In vim, type the following:
    
    :g/.\+-- $/normal d}

This will search your mail for lines beginning with at least one
character (.\+) and ending with '-- ', which is the standard marker
for signatures in email. On each of those lines, it will delete from
that line to the end of the paragraph, which is defined as vim as a
block of text beginning and ending with an empty line.

You may need to tweak the command depending on your signature;
it's also not overly intelligent. Still, if it works for you, you
could add it to your .vimrc and run it when buffers with ft=mail are
opened.

HTH.

-- 

o--------------------------{ Will Maier }--------------------------o
| jabber:..wcmaier@xxxxxxxxxxxxx | email:..........wcmaier@xxxxxxx |
| \.........wcmaier@xxxxxxxxxxxx | \..........wcmaier@xxxxxxxxxxxx |
*------------------[ BSD Unix: Live Free or Die ]------------------*