Filter script to remove html, fullquotes and header lines
Martin Trautmann
traut at gmx.de
Sun Mar 20 12:36:44 UTC 2022
Hi all,
do you know about any mutt script that would go from message to message and
1) remove a html part if a plain text part is given
2) remove all trailing lines,
starting with a quote sign ">"
and at least e.g. 10 occurences
such as (^>[.*][\r\n]){9,} before the end of the message
Maybe I could append xzxzxzx to the end of the message first, delete
a fullquote up to there and remove xzxzxzx again?
Bonus: Do not remove fullquotes for messages without in-reply-to or
references headers.
3) remove header lines which are longer than 5 lines
I want to shrink the size of some mailboxes for archive purposes,
without throwing away too much.
Thanks,
Martin
More information about the Mutt-users
mailing list