From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WAIFLcjFq2GJWgEAgWs5BA (envelope-from ) for ; Sat, 04 Dec 2021 20:47:20 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id +J+yKMjFq2GURAAAB5/wlQ (envelope-from ) for ; Sat, 04 Dec 2021 19:47:20 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 798F326595 for ; Sat, 4 Dec 2021 20:47:20 +0100 (CET) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 420E9290FF; Sat, 4 Dec 2021 14:47:14 -0500 (EST) X-Greylist: delayed 427 seconds by postgrey-1.36 at nmbug; Sat, 04 Dec 2021 14:47:11 EST Received: from ambassador.madduck.net (ambassador.madduck.net [188.174.253.166]) by mail.notmuchmail.org (Postfix) with ESMTPS id E80FC290E8 for ; Sat, 4 Dec 2021 14:47:11 -0500 (EST) X-MadduckNet-Submission: from lotus.rw.madduck.net (wall.mtvic.madduck.net [114.23.160.167]); Creds Client CN "lotus.rw.madduck.net", Issuer "R3" (not verified) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=madduck.net; s=2015-11-14; t=1638646802; bh=R9tpTrDLBQE7pQB4gM6zQXORmv3CtL16l4znqABO+wg=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=TKf1m9eEYMHQAtWKKhapr3xOOv+OuZ0wkVoBYKV+7NPC5E3qFThhnZuaTMqxkxOOK LPdZUEdQmV4McxXYdpF05VnEqeNhjl7T3pTGY9m2Q7BjofN6DjxQ3DxZUV+K9o3IxH 8Z+PiKuFaM8vFhWFXlwld9fHc8pOqTcuA9ojYo/8= X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.3 at ambassador.madduck.net Date: Sun, 5 Dec 2021 08:39:58 +1300 From: martin f krafft To: David Bremner Subject: Re: Forwarding inline html mails Message-ID: References: <87y250s7ey.fsf@tethera.net> MIME-Version: 1.0 In-Reply-To: <87y250s7ey.fsf@tethera.net> X-OS: Debian GNU/Linux bookworm/sid kernel 5.14.0-3-amd64 x86_64 X-Motto: Keep the good times rollin' X-Subliminal-Message: debian/rules! X-Spamtrap: madduck.bogus@madduck.net Message-ID-Hash: 5MXSAQBOCQRN3J5K5CONXJ6OEQFTMTBR X-Message-ID-Hash: 5MXSAQBOCQRN3J5K5CONXJ6OEQFTMTBR X-MailFrom: madduck@madduck.net X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: inwit , notmuch@notmuchmail.org X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============7284117118419985214==" X-Migadu-Flow: FLOW_IN X-Migadu-Country: FR ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1638647240; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=VYXBqcWJi3bcvEbqJtyxNf+fezPMmdN3vZOk5gNUhlI=; b=AQcIrUEJ83Imtbxq0eAIJvN+TutGyz8JGN8tlJn6SOwC1vgd8iV0yD8XAEFIJ30Qj9GC00 OOa0RRWukvucvF+D3I7gRevBagu/LC9Y6R9GNXtP03TU+RJDkfM10eUbOAcpSQaswo63C9 zOnwyV909Jz0XZ/gXNCpGe1+0GFzTFoYjzkBqp2etdsk1mu1Wse8nWynBMFipbEYl9xRxO doasxN92kBQthCNua9NCM0DkTcVzqYm5fVaA0WeKyqS3N0boNfxNtqjtWJUs349QPfTv7H rlfc4y174irrTYhiN8ih9IqvjSvEuhLBpar715M29xC/mie1YftvtIbRnortBQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1638647240; a=rsa-sha256; cv=none; b=AVE6Acqec5oY7TTiIwJQU5LceMHePNVVtLzKYfKqUyLKhLHGvy2/KcbCxCNrBTNzEVP08A f8aVifjjimYO+UvxTIYW9cdXkLq6N5VDJBSKwdYQ5+19n4dBJDoTFbusnKqAoMbiz7Lano n0O8PGw6WoX+NHCmecJldAhLB7L2vaiQeTieY6ULzgreXdEMABsABVBZANgYExKY2aIoRJ VJKgVMb69xcYRgbeQ+ww9C16Hzn6b7I1QdBB3bqJJEvl1BlI3fR26vgwfuPaIp3RshrZym ACpNj/mLWCNJTKERwepcP84V4tr19JuK6xXPHddVq0GFOFAdhF3Y/4iIP2TMLA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=madduck.net header.s=2015-11-14 header.b=TKf1m9eE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=madduck.net (policy=reject); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 6.00 X-Spam: Yes Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=madduck.net header.s=2015-11-14 header.b=TKf1m9eE; dmarc=fail reason="SPF not aligned (relaxed)" header.from=madduck.net (policy=reject); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 798F326595 X-Spam-Score: 6.00 X-Migadu-Spam: Yes X-Migadu-Scanner: scn0.migadu.com X-TUID: aT0Ca+dcve8V --===============7284117118419985214== Content-Type: multipart/alternative; boundary="NvLO9Vj6adB+UnVr" Content-Disposition: inline --NvLO9Vj6adB+UnVr Content-Type: text/plain; charset=utf-8; format=flowed; markup=markdown Content-Disposition: inline I use [htmldump](https://git.madduck.net/etc/mutt.git/blob/HEAD:/.config/mutt/htmldump) to render HTML mail to markdown, and then mutt's new multipart/alternative handling and [this script](https://git.madduck.net/etc/mutt.git/blob/HEAD:/.config/mutt/markdown2html) to turn markdown back into HTML on sending, and this will also take care of forwarded emails to a suitable degree. -- @martinkrafft | https://matrix.to/#/#madduck:madduck.net "when a woman marries again it is because she detested her first husband. when a man marries again it is because he adored his first wife. women try their luck; men risk theirs." -- oscar wilde spamtraps: madduck.bogus@madduck.net --NvLO9Vj6adB+UnVr Content-Type: text/html; charset=utf-8 Content-Disposition: inline -

I use htmldump to render HTML mail to markdown, and then mutt's new multipart/alternative handling and this script to turn markdown back into HTML on sending, and this will also take care of forwarded emails to a suitable degree.

--

@martinkrafft | https://matrix.to/#/#madduck:madduck.net


"when a woman marries again it is because she detested her first husband.

when a man marries again it is because he adored his first wife.

women try their luck; men risk theirs."

-- oscar wilde


spamtraps:

--NvLO9Vj6adB+UnVr-- --===============7284117118419985214== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============7284117118419985214==--