From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 777533858C31; Sat, 1 Jul 2023 22:04:55 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 777533858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1688249095; bh=EyD4sleEPiuNGRL5UNmJIb1lDBqiSg3/6vdvJgvTipk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=GmFY0jWmgmpADvHM9B9cbp394twnHtbp4M3OgsyhaA9Q6a/g2/hhVfb7yPCMI//4g ZLNujBr4o/4BFNuDSbo1gxZsBfXn0ZgN+xdvbCIH9cslpPIx7MqtGYcms+Vc1G2qLb fUiAUakhu3uQAiHUeSAzD5z3/9Fcxzy6N/AtQy4s= From: "mark at klomp dot org" To: overseers@sourceware.org Subject: [Bug Infrastructure/30436] inbox: strip HTML attachements Date: Sat, 01 Jul 2023 22:04:54 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: sourceware X-Bugzilla-Component: Infrastructure X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mark at klomp dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: overseers at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D30436 --- Comment #2 from Mark Wielaard --- With mimedefang we could use the following simple mimedefang-filter: # -*- Perl -*- sub filter_end { my($entity) =3D @_; 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 .for= ward filter /home/inbox/public-inbox-mda-true.sh Running mimedefang.pl directly by hand seems to work, but then we need anot= her wrapper to setup the COMMANDS and interpret the RESULTS as described in mimedefang-protocol. Maybe such a wrapper already exists? --=20 You are receiving this mail because: You are the assignee for the bug.=