Discussion:
throw away signature in reply
Michael Wagner
2018-09-15 11:26:29 UTC
Permalink
Hello folks,

I edit my mails here in mutt with vim. When I reply to a message I don't
want to delete the signature from the original poster by myself. Can this
be done in mutt or must it be done in vim.

TIA Michael
--
BOFH excuse #338:
old inkjet cartridges emanate barium-based fumes
Michael Tatge
2018-09-16 18:11:32 UTC
Permalink
Post by Michael Wagner
I edit my mails here in mutt with vim. When I reply to a message I don't
want to delete the signature from the original poster by myself.
I do this in vim.

" strip quoted signature
autocmd BufRead ~/tmp/mutt* execute 'silent g/^> --\s\=$/,/^$/-1d'

^ or whatever your $TMPDIR is

Michael
--
PGP-Key-ID: DE3C3D3BEEE7D043
Jabber: ***@jabber.de
Michael Wagner
2018-09-17 17:02:58 UTC
Permalink
Post by Michael Tatge
Post by Michael Wagner
I edit my mails here in mutt with vim. When I reply to a message I don't
want to delete the signature from the original poster by myself.
I do this in vim.
" strip quoted signature
autocmd BufRead ~/tmp/mutt* execute 'silent g/^> --\s\=$/,/^$/-1d'
^ or whatever your $TMPDIR is
Hello Michael,

thanks for this snippet.
--
You have two choices for dinner: Take it or Leave it.
m***@raf.org
2018-09-16 23:40:40 UTC
Permalink
Post by Michael Wagner
Hello folks,
I edit my mails here in mutt with vim. When I reply to a message I don't
want to delete the signature from the original poster by myself. Can this
be done in mutt or must it be done in vim.
TIA Michael
hi,

you could define your muttrc editor variable to be a program that locates
and removes signatures before invoking vim on the result. you just have
to write the program.

i used to have procmail filter emails through a program that deleted
signatures and legal notices upon arrival. i had to add new signatures
to be recognised whenever new ones turned up.

so it can be automated but it requires some effort.

cheers,
raf
Loading...