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 669C46DE0F33 for ; Mon, 25 Feb 2019 14:04:38 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.136 X-Spam-Level: X-Spam-Status: No, score=-0.136 tagged_above=-999 required=5 tests=[AWL=0.065, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] 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 MtYwdgADeJX6 for ; Mon, 25 Feb 2019 14:04:37 -0800 (PST) Received: from che.mayfirst.org (che.mayfirst.org [162.247.75.118]) by arlo.cworth.org (Postfix) with ESMTPS id 098366DE0EA6 for ; Mon, 25 Feb 2019 14:04:36 -0800 (PST) DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019; t=1551132274; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=JOhSFYOt9lkXiYzhtfJtBNAOn3sFytFQ/A3IJJrrDrs=; b=L92mWgEo2MQklD2KbY+pnGtBLvQfJP9ME1aY+a9fTNgacrx03WzFqdaI Az5jOKhhfVEynG3u7kO3uN+EdSrtBw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fifthhorseman.net; i=@fifthhorseman.net; q=dns/txt; s=2019rsa; t=1551132274; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=JOhSFYOt9lkXiYzhtfJtBNAOn3sFytFQ/A3IJJrrDrs=; b=elLoiLZ8BRC1ARC3rOFZBt0OaTWWRYOpgWpFnITn5efxUjZfjhGiXUM1 A1Y1lCJOlm4R+fMDd0ONwPRCArqnVSthFijPpsui/87li8ctxLHxL59BJJ 2l/ewyhGlGB8JfuojOnTPgi6RPxUha1u0A5MOXNY6Kvvb6AbIerN3ikopy uJtsLuzdjYj4lhVJnfsYV6gBOMS93voSYBApxI8uHfXTENl++Pzh90ZdrO 2Q3BlyMU1GKTum++/r6ZdOQGDAYvxaPfqTRESlDatOJ71XWnta9UWH6Rea IRwNQFWcsEJrOhcieLibMJQ3ZS8DakmzRtAR6nz3OgU52D0EE6ZfHw== Received: from fifthhorseman.net (unknown [38.109.115.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by che.mayfirst.org (Postfix) with ESMTPSA id 6BF21F99D; Mon, 25 Feb 2019 17:04:34 -0500 (EST) Received: by fifthhorseman.net (Postfix, from userid 1000) id 43AA31FE7D; Mon, 25 Feb 2019 16:18:04 -0500 (EST) From: Daniel Kahn Gillmor To: Antoine =?utf-8?Q?Beaupr=C3=A9?= , notmuch@notmuchmail.org Subject: Re: [RFC] writing HTML email with notmuch In-Reply-To: <875zt8zlav.fsf@curie.anarc.at> References: <875zt8zlav.fsf@curie.anarc.at> Autocrypt: addr=dkg@fifthhorseman.net; prefer-encrypt=mutual; keydata= mDMEXEK/AhYJKwYBBAHaRw8BAQdAr/gSROcn+6m8ijTN0DV9AahoHGafy52RRkhCZVwxhEe0K0Rh bmllbCBLYWhuIEdpbGxtb3IgPGRrZ0BmaWZ0aGhvcnNlbWFuLm5ldD6ImQQTFggAQQIbAQUJA8Jn AAULCQgHAgYVCgkICwIEFgIDAQIeAQIXgBYhBMS8Lds4zOlkhevpwvIGkReQOOXGBQJcQsbzAhkB AAoJEPIGkReQOOXG4fkBAO1joRxqAZY57PjdzGieXLpluk9RkWa3ufkt3YUVEpH/AP9c+pgIxtyW +FwMQRjlqljuj8amdN4zuEqaCy4hhz/1DbgzBFxCv4sWCSsGAQQB2kcPAQEHQERSZxSPmgtdw6nN u7uxY7bzb9TnPrGAOp9kClBLRwGfiPUEGBYIACYWIQTEvC3bOMzpZIXr6cLyBpEXkDjlxgUCXEK/ iwIbAgUJAeEzgACBCRDyBpEXkDjlxnYgBBkWCAAdFiEEyQ5tNiAKG5IqFQnndhgZZSmuX/gFAlxC v4sACgkQdhgZZSmuX/iVWgD/fCU4ONzgy8w8UCHGmrmIZfDvdhg512NIBfx+Mz9ls5kA/Rq97vz4 z48MFuBdCuu0W/fVqVjnY7LN5n+CQJwGC0MIA7QA/RyY7Sz2gFIOcrns0RpoHr+3WI+won3xCD8+ sVXSHZvCAP98HCjDnw/b0lGuCR7coTXKLIM44/LFWgXAdZjm1wjODbg4BFxCv50SCisGAQQBl1UB BQEBB0BG4iXnHX/fs35NWKMWQTQoRI7oiAUt0wJHFFJbomxXbAMBCAeIfgQYFggAJhYhBMS8Lds4 zOlkhevpwvIGkReQOOXGBQJcQr+dAhsMBQkB4TOAAAoJEPIGkReQOOXGe/cBAPlek5d9xzcXUn/D kY6jKmxe26CTws3ZkbK6Aa5Ey/qKAP0VuPQSCRxA7RKfcB/XrEphfUFkraL06Xn/xGwJ+D0hCw== Date: Mon, 25 Feb 2019 16:18:03 -0500 Message-ID: <87o96zpnxw.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.29 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: Mon, 25 Feb 2019 22:04:38 -0000 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Antoine-- thanks for an entertaining and thoughtful read. Your elisp rendered really strangely for me in notmuch mode in emacs: (widen) (save-excursion (set-buffer output-buffer-name) (markdown-add-xhtml-header-and-footer "")) (insert " [ multipart/alternative ] [ text/plain ] \n") (end-of-buffer) (insert " [ text/html (hidden) ] \n") (insert-buffer output-buffer-name) (insert " [ text/plain ] ;; remove Markdown
 markings
     (goto-char signature-position)

(note the []-delimited emacs buttons above)

The issue here appears to be that the MIME boundaries in your message (i
won't repeat them here because i don't want to break my own message) are
getting mixed up/confused somehow with the mime boundaries you include
in the elisp.

I'd be happy to compare raw files with you at some point if you want to
try to make sense of this.  I'm hoping that the error is in the message
generation (that your sending MUA garbled your elisp) rather than in the
receipt, because if the receiving side is at fault it's a much worse
security risk.

On Sun 2019-02-24 20:52:40 -0500, Antoine Beaupr=C3=A9 wrote:
> PPS: I remember reading about someone wanting to declare a text/markdown
> mimetype for email, and remembering it was all backwards and weird and I
> can't find the reference anymore. If some lazyweb magic person could
> forward the link to me I would be grateful.

https://tools.ietf.org/html/rfc7763 -- I'm sure Sean Leonard (the author
of this informational RFC) would be open to discussion about what's
missing or what could be improved.

        --dkg

--=-=-=
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iHUEARYKAB0WIQTJDm02IAobkioVCed2GBllKa5f+AUCXHRbiwAKCRB2GBllKa5f
+Pz1AQD9vgsuNDPIPPsEc8nsr18Kxvl5/pK9lKPFcdmLUZRRbgD+JpTjWf8TllRv
9LJbwYjvn9I902m9FfMDg+xj2IVY2gI=
=xkpd
-----END PGP SIGNATURE-----
--=-=-=--