On Thu, Feb 24, 2011 at 08:12:51PM +0100, Matthias Apitz wrote:
> El día Thursday, February 24, 2011 a las 08:01:26PM +0100, Thorsten Scherf 
> escribió:
> > some mailinglists using freemail providers put an automatic signature to
> > all mails from the lists. How do I have to configure mutt to get rid of
> > the signature from all mails within a specfic folder?
> > 
> > Cheers,
> > Thorsten
> > 
> 
> Even there is an exact definition *what* a signature is, i.e. what
> separates it from the rest of the body, most of the email writers today
> are clueless about and/or don't care. In short: it is impossible.

Nothing's impossible in mutt :-)

I would suggest setting a display_filter. When this is set, mutt pipes
messages through the specified program before displaying them. You can
then use your favourite combination of bash, grep, sed, awk, perl,
phython or whatever your preferred text munging utility happens to be to
write a display_filter script to strip off the unwanted signature.

I use something like this myself, albeit for a very different purpose
(stripping out entries I know I'm not interested in from the message
bodies on a particular announcement mailing list).

The hard part, of course, will be reliably matching just the signature
part of the mail, and nothing else. If the mailing lists add a standard,
predictable signature, then it shouldn't be too difficult. If you need to
do this for multiple mailing lists, each with a different sig, you might
be better off using a different script (or passing in different
arguments) for each mailing list, by setting display_filter in a
folder-hook or message-hook.

Good luck,

Toby
-- 
Dr T. S. Cubitt
Mathematics and Quantum Information group
Department of Mathematics
Complutense University
Madrid, Spain

email: ts...@cantab.net
web:   www.dr-qubit.org

Reply via email to