From: Konstantin Ryabitsev <konstantin@linuxfoundation.org>
To: meta@public-inbox.org
Subject: Filter example for ML footers
Date: Sat, 16 Nov 2019 12:52:51 -0500 [thread overview]
Message-ID: <20191116175251.ykhpp6zuo5f6kqiy@chatter.i7.local> (raw)
Hello:
Groups.io adds a super-obnoxious footer to all outgoing messages, and I
would like to be able to filter that out. Example:
https://lore.kernel.org/keys/20191111161300.hc7vb7rcb45gsqmg@chatter.i7.local/
The obnoxious footer can be either part of the main body (default
"chaotic evil" version) or a separate mime-part (configurable, "lawful
evil").
I tried to wrap my brain around existing filters, but they don't quite
do the exact thing I need, specifically:
- if there is a text/plain mime-part with just "^-=-=.*=-=-$", remove it
- if there is no more content left after removing the footer, nuke the
entire mime-part
Any quick pointers how this can be accomplished?
TIA.
-K
next reply other threads:[~2019-11-16 17:52 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-16 17:52 Konstantin Ryabitsev [this message]
2019-11-17 1:24 ` Filter example for ML footers Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191116175251.ykhpp6zuo5f6kqiy@chatter.i7.local \
--to=konstantin@linuxfoundation.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).