From: "mark at klomp dot org" <sourceware-bugzilla@sourceware.org>
To: overseers@sourceware.org
Subject: [Bug Infrastructure/30436] inbox: strip HTML attachements
Date: Sat, 01 Jul 2023 22:04:54 +0000 [thread overview]
Message-ID: <bug-30436-14326-xHMSWeapN7@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-30436-14326@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=30436
--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
With mimedefang we could use the following simple mimedefang-filter:
# -*- Perl -*-
sub filter_end {
my($entity) = @_;
remove_redundant_html_parts($entity);
}
# DO NOT delete the next line, or Perl will complain.
1;
But it isn't clear to me how/if we can use the milter setup to only filter
messages sent to the inbox user, or how to integrate it into the inbox .forward
filter /home/inbox/public-inbox-mda-true.sh
Running mimedefang.pl directly by hand seems to work, but then we need another
wrapper to setup the COMMANDS and interpret the RESULTS as described in
mimedefang-protocol. Maybe such a wrapper already exists?
--
You are receiving this mail because:
You are the assignee for the bug.
next prev parent reply other threads:[~2023-07-01 22:04 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-09 21:55 [Bug Infrastructure/30436] New: " mark at klomp dot org
2023-06-23 14:22 ` [Bug Infrastructure/30436] " mark at klomp dot org
2023-07-01 22:04 ` mark at klomp dot org [this message]
2023-07-09 14:10 ` mark at klomp dot org
2023-07-09 19:06 ` mark at klomp dot org
2023-07-10 9:08 ` mark at klomp dot org
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bug-30436-14326-xHMSWeapN7@http.sourceware.org/bugzilla/ \
--to=sourceware-bugzilla@sourceware.org \
--cc=overseers@sourceware.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).