From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 910D16DE1105 for ; Fri, 11 Aug 2017 16:07:27 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.053 X-Spam-Level: X-Spam-Status: No, score=-0.053 tagged_above=-999 required=5 tests=[AWL=-0.053] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zk514I2fhUYy for ; Fri, 11 Aug 2017 16:07:26 -0700 (PDT) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTP id C12886DE1101 for ; Fri, 11 Aug 2017 16:07:26 -0700 (PDT) Received: from fifthhorseman.net (unknown [38.109.115.130]) by che.mayfirst.org (Postfix) with ESMTPSA id 2951EF99B; Fri, 11 Aug 2017 19:07:24 -0400 (EDT) Received: by fifthhorseman.net (Postfix, from userid 1000) id 9B638206AC; Fri, 11 Aug 2017 19:05:59 -0400 (EDT) From: Daniel Kahn Gillmor To: Dylan Baker , Notmuch Mail Cc: Steve Kemp Subject: Re: rendering and generating text/markdown parts In-Reply-To: <150248896497.16839.12866596405332768085@localhost.localdomain> References: <87y3qqpvfz.fsf@fifthhorseman.net> <150248896497.16839.12866596405332768085@localhost.localdomain> Date: Fri, 11 Aug 2017 19:05:56 -0400 Message-ID: <87y3qpn1rf.fsf@fifthhorseman.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Aug 2017 23:07:27 -0000 --=-=-= Content-Type: text/plain On Fri 2017-08-11 15:02:44 -0700, Dylan Baker wrote: > Natively no. I have a fairly minor patch to alot that would make it work if the > type was text/markdown instead of text/plain. huh, i tried to set Content-Type: text/markdown in emacs mml-mode by just fiddling with the header but mml apparently believed that it knew better than i did what Content-Type header to send and sent out text/plain anyway :/ > I have another patch that makes this render correctly as markdown, but it breaks > lots of other text/plain emails that use characters in a way that they look like > markdown to cmark, but aren't actually markdown. yeah, i agree we should *not* try to apply these filters to anything not marked explicitly as text/markdown. > I think if we're going to have a message format we should use text/markdown or > text/commonmark, or text/x-(markdown|commonmark) rather than text/plain as the > format. While it's safe to read markdown as plain text (it was originally used > that way anyway), it's not safe to assume that all text is valid markdown. Absolutely agreed. > elinks with "-dump-color-mode 1" did a pretty good job of formatting the html that > came out of cmark. I've attached that if anyone wants to see it. Interesting, it does look plausible, though i confess i don't like the idea of needing a two-stage pipeline. seems like a lot of attack surface and moving parts :/ --dkg --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEOCdgUepHf6PklTkyFJitxsGSMjcFAlmOOFQACgkQFJitxsGS MjeE1w//e/1omhfPENNkSWxvPOsUzzw3KiS13Tp7d4YpnaXPddyYWbNUoinEwanJ XjgG/x7w0r+AQhK7hHzMPcwxJB2Cj+atG/SBnd5c7CQvslyxmjqaAYZ5T5UQ+3i0 TT8eYBlBn9uZU4Sr7Juc4c5gzzhDw17K7JzP+3dfWPTLgNJcpv2uH8nyoS4nNZCK 2vsRCEbm7Qw+VmYjlx+sFY53+RSMFJS/TLCy+n3INql6B6fc9XBcPVSBuWavq47c hNuhLmu7gUS2oBlj3R8WJKATGExVL5KfD+AXI+HcXwheXcu7NoE9kcVGNnXYmDrc E9QZzwS1mE3FOWpIGs7jbLVpLqTy1lAUAgzMmVl23D0rbiqEe4ktkqnbhNiK35Gu fHPpdHsnh2ehXkL0anTkQdKLk0yBvsldgGlTRYQ0ITs+ejnqlSnyYe0v+qO9axDV 3uuWaKMr+seOPAHajDwrXP9RqzBwZlWzp+hlD/9yWaqJdRUcqtpI3Xx/fx7gifFa HEWib+r84viuMVaKSL/izY7I2O1uzAUsgPDLUnfqI/5RatY0xsTtQaqptQe7OKqq JnT9AXlZePJKXZ+7a4ACN3Dw7r9zTFJO+a2OM05UvfPMpaGIAd7iIffJeI8DOzc2 GLVtlF+SsXc0/PCdeXjTKwT/maY0L4TyLdFIm1wqMjziNc0N4Z8= =gFod -----END PGP SIGNATURE----- --=-=-=--