MIME restructuring [was: Re: release-candidate/0.6]
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 16 May 2011 20:50:06 +0000 (16:50 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:38:16 +0000 (09:38 -0800)
ce/31f5877b84dcf01673735a79ab9b20c02f97c2 [new file with mode: 0644]

diff --git a/ce/31f5877b84dcf01673735a79ab9b20c02f97c2 b/ce/31f5877b84dcf01673735a79ab9b20c02f97c2
new file mode 100644 (file)
index 0000000..589b279
--- /dev/null
@@ -0,0 +1,131 @@
+Return-Path: <dkg@fifthhorseman.net>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 6C173429E27\r
+       for <notmuch@notmuchmail.org>; Mon, 16 May 2011 13:50:16 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id deDfR768VyCb for <notmuch@notmuchmail.org>;\r
+       Mon, 16 May 2011 13:50:15 -0700 (PDT)\r
+Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108])\r
+       by olra.theworths.org (Postfix) with ESMTP id D3171431FD0\r
+       for <notmuch@notmuchmail.org>; Mon, 16 May 2011 13:50:15 -0700 (PDT)\r
+Received: from [192.168.23.207] (dsl254-070-154.nyc1.dsl.speakeasy.net\r
+       [216.254.70.154])\r
+       by che.mayfirst.org (Postfix) with ESMTPSA id 85087F97F;\r
+       Mon, 16 May 2011 16:50:12 -0400 (EDT)\r
+Message-ID: <4DD18DFE.7090206@fifthhorseman.net>\r
+Date: Mon, 16 May 2011 16:50:06 -0400\r
+From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>\r
+User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;\r
+       rv:1.9.2.15) Gecko/20110402 Icedove/3.1.9\r
+MIME-Version: 1.0\r
+To: Carl Worth <cworth@cworth.org>\r
+Subject: MIME restructuring [was: Re: release-candidate/0.6]\r
+References: <8762pn7gth.fsf@servo.factory.finestructure.net>\r
+       <874o4zczr8.fsf@yoom.home.cworth.org>\r
+       <87wrhvyqfn.fsf@servo.factory.finestructure.net>\r
+       <87r57ybcna.fsf@yoom.home.cworth.org>\r
+In-Reply-To: <87r57ybcna.fsf@yoom.home.cworth.org>\r
+X-Enigmail-Version: 1.1.2\r
+Content-Type: multipart/signed; micalg=pgp-sha512;\r
+       protocol="application/pgp-signature";\r
+       boundary="------------enig766C5CB43E706E134D070582"\r
+Cc: Notmuch Mail <notmuch@notmuchmail.org>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+Reply-To: notmuch <notmuch@notmuchmail.org>\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Mon, 16 May 2011 20:50:16 -0000\r
+\r
+This is an OpenPGP/MIME signed message (RFC 2440 and 3156)\r
+--------------enig766C5CB43E706E134D070582\r
+Content-Type: text/plain; charset=UTF-8\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On 05/16/2011 04:42 PM, Carl Worth wrote:\r
+>      Meanwhile, I still can't tell exactly what the behavioral change\r
+>      intended is. The commit message talks about "fully recursing"\r
+>      and "match[ing] the MIME structure of the message". Was it not\r
+>      fully recursing before? In what way did the output not match the\r
+>      MIME structure before?\r
+\r
+before, the output was a linearized version of the mime tree, in\r
+particular removing the multipart pieces and only enumerating the leaves\r
+in a depth-first walk of the tree.\r
+\r
+So a message like this:\r
+\r
+A=E2=94=94=E2=94=AC=E2=95=B4multipart/signed 355339 bytes\r
+B =E2=94=9C=E2=94=AC=E2=95=B4multipart/mixed 353462 bytes\r
+C =E2=94=82=E2=94=9C=E2=95=B4text/plain 235 bytes\r
+D =E2=94=82=E2=94=94=E2=95=B4image/jpeg attachment [foo.jpg] 352752 bytes=\r
+\r
+E =E2=94=94=E2=95=B4application/pgp-signature attachment [signature.asc] =\r
+1030 bytes\r
+\r
+would come out with three parts:\r
+\r
+ 1) C\r
+ 2) D\r
+ 3) E\r
+\r
+the new code assigns this message to 5 parts:\r
+\r
+ 1) A\r
+ 2) B\r
+ 3) C\r
+ 4) D\r
+ 5) E\r
+\r
+This change is critical to be able to properly delineate which parts of\r
+a message were signed and/or encrypted.\r
+\r
+hth,\r
+\r
+       --dkg\r
+\r
+\r
+--------------enig766C5CB43E706E134D070582\r
+Content-Type: application/pgp-signature; name="signature.asc"\r
+Content-Description: OpenPGP digital signature\r
+Content-Disposition: attachment; filename="signature.asc"\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.11 (GNU/Linux)\r
+Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/\r
+\r
+iQJ8BAEBCgBmBQJN0Y3+XxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w\r
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQwRUU1QkU5NzkyODJEODBCOUY3NTQwRjFD\r
+Q0QyRUQ5NEQyMTczOUU5AAoJEMzS7ZTSFznpCO0P/jtlyDHL1DCTVo+Nr9fFTJln\r
+7TVI1gfETjMPGYY7A6A7dMuKYCjxm7DdvV4nPnqi4yrz/yxja41P161QrdZdzvMb\r
+i4MsivVQWTMUUvCWC2ns86YvHu1wI6LitvBw0DhKMxuKTxmPNsU4R8pUGa/2kQ8U\r
+b99VS87na8F4DCD0a05gdgHejOUJB9dpXcjBj8Kh3yHldHKr/AVjZfokjiX9dc5a\r
+/zrcN16pE1aPC6mFznpqPdhwdXcfWtMu25YpXQTV5NXuEWKXsCynPtO4FCy94DF2\r
+14g5KHldp6PdKSTlfHgaYfF9T0jYCm8Ii06U7vpPRgbiNh7wg87mI7ZteB6B5URb\r
+vBFSCo5bHrHZ+uNnRjRH5GiiMHTzRBcth968N4+TSmaKB8eIBeQ+EwBCZ2Ic9iZQ\r
+xM2n//Jx7Tk0vjbrPMJhc+9+pPvnoGlyMGjhpTGIIuG1cTIU32JEFLTJOeZcedD8\r
+Y4XxwW74sWU25AGyhL1Ya4hBcnrrTE9LZeNdOQ0dz+yW4ABbWP8oq/+tuYWz+eSg\r
+dcYLoiSQbqPqO7zTeqlWtSaUB417CFYyLk4nZ82peMzBGig3fodRtslxuw5sI0de\r
+hGl9rnxa1z3d9ffGUXc56ohRKVZDitnxsVBdrv7Yi3QLcTHsTatsHuoMi6lHQnbO\r
+MisaLcAn2fhPuf+QGduS\r
+=Z+jK\r
+-----END PGP SIGNATURE-----\r
+\r
+--------------enig766C5CB43E706E134D070582--\r