Re: problems viewing attachments in emacs ui
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>
Mon, 29 Jul 2013 14:59:50 +0000 (10:59 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:56:11 +0000 (09:56 -0800)
0c/325bd881c7407dd30878aff843fda19317d2c2 [new file with mode: 0644]

diff --git a/0c/325bd881c7407dd30878aff843fda19317d2c2 b/0c/325bd881c7407dd30878aff843fda19317d2c2
new file mode 100644 (file)
index 0000000..9aa8d14
--- /dev/null
@@ -0,0 +1,129 @@
+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 E0CA7431FC0\r
+       for <notmuch@notmuchmail.org>; Mon, 29 Jul 2013 08:00:02 -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 bF7vS7-mkbxh for <notmuch@notmuchmail.org>;\r
+       Mon, 29 Jul 2013 07:59:57 -0700 (PDT)\r
+Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108])\r
+       by olra.theworths.org (Postfix) with ESMTP id 3CFBD431FBF\r
+       for <notmuch@notmuchmail.org>; Mon, 29 Jul 2013 07:59:57 -0700 (PDT)\r
+Received: from [192.168.23.229] (dsl254-070-154.nyc1.dsl.speakeasy.net\r
+       [216.254.70.154])\r
+       by che.mayfirst.org (Postfix) with ESMTPSA id 6BC99F984\r
+       for <notmuch@notmuchmail.org>; Mon, 29 Jul 2013 10:59:51 -0400 (EDT)\r
+Message-ID: <51F68366.5070900@fifthhorseman.net>\r
+Date: Mon, 29 Jul 2013 10:59:50 -0400\r
+From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>\r
+User-Agent: Mozilla/5.0 (X11; Linux x86_64;\r
+       rv:17.0) Gecko/20130630 Icedove/17.0.7\r
+MIME-Version: 1.0\r
+To: Notmuch Mail <notmuch@notmuchmail.org>\r
+Subject: Re: problems viewing attachments in emacs ui\r
+References: <87hafe4ox6.fsf@servo.finestructure.net>\r
+       <87ehai4ns3.fsf@servo.finestructure.net>\r
+       <87ob9lipz5.fsf@zancas.localnet>\r
+In-Reply-To: <87ob9lipz5.fsf@zancas.localnet>\r
+X-Enigmail-Version: 1.5.1\r
+Content-Type: multipart/signed; micalg=pgp-sha512;\r
+       protocol="application/pgp-signature";\r
+       boundary="----enig2UXMLROVCTGLCAKSANNQA"\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, 29 Jul 2013 15:00:03 -0000\r
+\r
+This is an OpenPGP/MIME signed message (RFC 4880 and 3156)\r
+------enig2UXMLROVCTGLCAKSANNQA\r
+Content-Type: text/plain; charset=UTF-8\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+On 07/29/2013 07:07 AM, David Bremner wrote:\r
+> Jameson Graef Rollins <jrollins@finestructure.net> writes:\r
+>=20\r
+>> I'm now realizing that my problem with html parts is probably that\r
+>> browser is attempting to open the temporary file in the background.\r
+>> When the browser call returns, the caller assumes the application is\r
+>> done with the temp file and purges it.  So for this issue at least I\r
+>> need to either convince my browser to not open the file in the\r
+>> background, or tell emacs to cleanup temp files at some later time\r
+>> (session termination, for instance).\r
+>=20\r
+> I didn't have time to think through the consequences, but the following=\r
+\r
+> kludge seems to let the browser start:\r
+\r
+hm.  there are some pretty serious consequences to feeding arbitrary\r
+html to your web browser via a file:/// URL.  In particular, your\r
+browser might execute arbitrary javascript (which itself can interact\r
+with the rest of your web browsing history and/or logged-in sessions),\r
+and might fetch data from outside sources (leaking at least information\r
+about when and from where you read your e-mail, and potentially other\r
+things).\r
+\r
+The consequence of commenting out the file deletion is that you start to\r
+fill up your tmpdir with a bunch of crufty old files :)\r
+\r
+One other approach that would address some of these other issues might\r
+be to open the html in a separate, temporary profile for your web\r
+browser, one that doesn't directly interact with your main web browsing\r
+profile (or any other browser profile).  This would also have the\r
+advantage of not terminating until the browser profile is closed.\r
+\r
+I know that chromium offers as --temp-profile argument that behaves this\r
+way.  I'm not sure how to do it with iceweasel -- you could do it\r
+manually, with a combination of -ProfileManager and -no-remote, then\r
+create a new profile, and then when done clean it up afterwards\r
+manually, but that sounds like a real pain.\r
+\r
+hth,\r
+\r
+       --dkg\r
+\r
+\r
+------enig2UXMLROVCTGLCAKSANNQA\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.14 (GNU/Linux)\r
+Comment: Using GnuPG with Icedove - http://www.enigmail.net/\r
+\r
+iQJ8BAEBCgBmBQJR9oNmXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w\r
+ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFQjk2OTEyODdBN0FEREUzNzU3RDkxMUVB\r
+NTI0MDFCMTFCRkRGQTVDAAoJEKUkAbEb/fpclusP/0xpbwQKLhxXycIAPelcDJk8\r
+FPs+FL4VUcdwHRCqhm6Xh/ArWJ9IeUb/JlDl0SDk6q8qFtkKrcglI1BAA7tQDBVA\r
+hBx+ho1CWa13bW3Lvmf1LpeH7oT3Q54o3+0QcZSMFG9FQMhy3OMv4LlTN0WKf4zE\r
+M7QqDTucQeZSgwObhrLyY56s2eCTNOpQYj/eChf/rTMxMkPvarwAAK6s+xW5Jxjm\r
+wYrDIgoeekiK+/SV6fgbNubM8b2wflUgX/UjS7lmbiNl6ed1NOl+eO8gKyIMdVTM\r
+tfyRc4eiqTXf/cRIl7VqGKU7H/Vu495szo4n9Zw7leD9Yfd0PnPbNrmDjEwqUsLV\r
+2Un2135DPE2Gu3JylnDthnnrh/VGr+OREe/T/dPtcrZy42ZOIsLZoUPe8xdj/gLL\r
+B2ag7SfYRr7z6vGod8ji3+AgEZyqgAYqrjEtbAyK2Q9lyOYsP1/GNfBtj7/curOb\r
+iltid7Mph1clPjKAwuOuZUesEJxDSrWLE1q8Sn/bSbZn+jxfgOPHcOwOfKbusdCi\r
+pv7soX+JsgjvK0p62kt9aCU02PX0kq4+xtjlh92zEORX2CD4vZNGP5rg1mowZbVA\r
+XssGzhC3tnLTNpRkd5KRJZnF0A09tovzqeJTNOflSU9w5cl6FgoUTPgFg6Icv89M\r
+4YgB3mdqhgiFXcPYNIws\r
+=2Kps\r
+-----END PGP SIGNATURE-----\r
+\r
+------enig2UXMLROVCTGLCAKSANNQA--\r