--- /dev/null
+Return-Path: <jrollins@finestructure.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 2F0B4431FD4\r
+ for <notmuch@notmuchmail.org>; Sun, 17 Nov 2013 11:38:17 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -2.3\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_MED=-2.3] 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 XzpwRbjDOIC9 for <notmuch@notmuchmail.org>;\r
+ Sun, 17 Nov 2013 11:38:11 -0800 (PST)\r
+Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu\r
+ [131.215.239.19])\r
+ by olra.theworths.org (Postfix) with ESMTP id 95190431FAF\r
+ for <notmuch@notmuchmail.org>; Sun, 17 Nov 2013 11:38:11 -0800 (PST)\r
+Received: from earth-doxen.imss.caltech.edu (localhost [127.0.0.1])\r
+ by earth-doxen-postvirus (Postfix) with ESMTP id 1CCCF66E00FF;\r
+ Sun, 17 Nov 2013 11:38:11 -0800 (PST)\r
+X-Spam-Scanned: at Caltech-IMSS on earth-doxen by amavisd-new\r
+Received: from finestructure.net (unknown [198.129.209.202])\r
+ (Authenticated sender: jrollins)\r
+ by earth-doxen-submit (Postfix) with ESMTP id 71C2966E011F;\r
+ Sun, 17 Nov 2013 11:38:05 -0800 (PST)\r
+Received: by finestructure.net (Postfix, from userid 1000)\r
+ id A15D26008E; Sun, 17 Nov 2013 11:38:00 -0800 (PST)\r
+From: Jameson Graef Rollins <jrollins@finestructure.net>\r
+To: Mark Walters <markwalters1009@gmail.com>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] emacs: do not put quoted reply in primary selection\r
+In-Reply-To: <1384689849-9388-1-git-send-email-markwalters1009@gmail.com>\r
+References: <1384689849-9388-1-git-send-email-markwalters1009@gmail.com>\r
+User-Agent: Notmuch/0.16+168~gf3d6c8c (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Sun, 17 Nov 2013 11:37:57 -0800\r
+Message-ID: <87siuu95uy.fsf@servo.finestructure.net>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+ micalg=pgp-sha256; protocol="application/pgp-signature"\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\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: Sun, 17 Nov 2013 19:38:17 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+\r
+On Sun, Nov 17 2013, Mark Walters <markwalters1009@gmail.com> wrote:\r
+> In current emacs (24.3) select-active-regions is set to t by\r
+> default. The reply insertion code sets the region to the quoted\r
+> message to make it easy to delete (kill-region or C-w). These two\r
+> things combine to put the quoted message in the primary selection.\r
+>\r
+> This is not what the user wanted and is a privacy risk (accidental\r
+> pasting of the quoted message). We can avoid some of the problems\r
+> by let-binding select-active-regions to nil. This fixes if the\r
+> primary selection was previously in a non-emacs window but not if\r
+> it was in an emacs window. To avoid the problem in the latter case\r
+> we deactivate mark.\r
+>\r
+> One key test (which fails under many simpler "fixes") is: open emacs\r
+> 24.3 with notmuch, open 2 windows (viewing different notmuch buffers),\r
+> highlight some text in one, and then reply to a message in the\r
+> other. In many of my earlier attempts to fix this big this test fails.\r
+\r
+I'm very happy to report that I reply to this message with an unpolluted\r
+paste buffer! Kudos Mark!\r
+\r
+> Anyway, this is the best I can manage!\r
+\r
+Too modest for such an achievement.\r
+\r
++10\r
+\r
+jamie.\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.15 (GNU/Linux)\r
+\r
+iQIcBAEBCAAGBQJSiRsWAAoJEO00zqvie6q8IbgP/0dwCT/d11gLDuei92DcisKq\r
+AUkTcUtcUMIUrahoosvVnJcXt1qXDnRhmfsj7DGArVEkRkF/Zol+eettsrmAfxPG\r
+iHkp4QAxFA20pw69rDI9wXsAuwda2dWvU+Yl8tL6IM/kA7x6odnbH0Vogggum5YR\r
+s5c/grCkRmhgBDOjY+9L5Qrgj/RUH5vAVDaX2Fu8nbnGu7EUR3a/eL0bFjgYZlrJ\r
+xZXANlVRr0tSgMc8eiLI9kdXOV7owT0iRDNaTpu3MN1s98qn67DIbrSrw/8+k6Ie\r
+fxa4wVV7EAswENTy3PcI6LB9UltgGp+gZEaTP8RoXJlhO+VPTXyUwfJTlWSZt6+I\r
+tkqWs31XvSm3Eo53brNRtgpaHV2clE69U4C/pqFbKgkQfTD5VK7n2pZiF9PPCNPZ\r
+90lHcT6i5AJGcGZxxHnr2yOD0RFMYUZucdTu0jWq6w6TPtB4chzfmUiVYt9xfoqD\r
+oPz+yWa9Yiavmzcso3dI68FBA4L0mqI3KLq4afYcjk6rHrAha4D2gX1IK8U3GaWA\r
+ynKtFQdMA7GxOswIN6dQXDBR8R2iNzjDRIi63Emm8NDVzaPWez1vn0VXOuSrZjDC\r
+m0klOsA9KyKgJ3qB19JU9LftrsCDcDL3zIbSOkA+rEGIDzwjkG7YG7/bSCTWs3ps\r
+bylJMZ4Fs+0bIkQK+Ym4\r
+=fcuz\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r