[PATCH 0/2] Escape message ID queries in Emacs
authorAustin Clements <amdragon@MIT.EDU>
Tue, 27 Mar 2012 01:37:14 +0000 (21:37 +2000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:47 +0000 (09:45 -0800)
0b/cab2dbc54f263e18f5a2a4fa4107236b60cc47 [new file with mode: 0644]

diff --git a/0b/cab2dbc54f263e18f5a2a4fa4107236b60cc47 b/0b/cab2dbc54f263e18f5a2a4fa4107236b60cc47
new file mode 100644 (file)
index 0000000..5e941a0
--- /dev/null
@@ -0,0 +1,77 @@
+Return-Path: <amthrax@awakening.csail.mit.edu>\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 CE297431FBC\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Mar 2012 18:37:22 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 us80l6szoIOG for <notmuch@notmuchmail.org>;\r
+       Mon, 26 Mar 2012 18:37:21 -0700 (PDT)\r
+Received: from dmz-mailsec-scanner-6.mit.edu (DMZ-MAILSEC-SCANNER-6.MIT.EDU\r
+       [18.7.68.35])\r
+       by olra.theworths.org (Postfix) with ESMTP id A1504431FAE\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Mar 2012 18:37:21 -0700 (PDT)\r
+X-AuditID: 12074423-b7f9c6d0000008c3-b8-4f7119d06af9\r
+Received: from mailhub-auth-3.mit.edu ( [18.9.21.43])\r
+       by dmz-mailsec-scanner-6.mit.edu (Symantec Messaging Gateway) with SMTP\r
+       id 35.F8.02243.0D9117F4; Mon, 26 Mar 2012 21:37:20 -0400 (EDT)\r
+Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
+       by mailhub-auth-3.mit.edu (8.13.8/8.9.2) with ESMTP id q2R1bK0d023370\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Mar 2012 21:37:20 -0400\r
+Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])\r
+       (authenticated bits=0)\r
+       (User authenticated as amdragon@ATHENA.MIT.EDU)\r
+       by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q2R1bIAo004567\r
+       (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT)\r
+       for <notmuch@notmuchmail.org>; Mon, 26 Mar 2012 21:37:20 -0400 (EDT)\r
+Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)\r
+       (envelope-from <amthrax@awakening.csail.mit.edu>) id 1SCLLa-0005Ka-Cu\r
+       for notmuch@notmuchmail.org; Mon, 26 Mar 2012 21:37:18 -0400\r
+From: Austin Clements <amdragon@MIT.EDU>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/2] Escape message ID queries in Emacs\r
+Date: Mon, 26 Mar 2012 21:37:14 -0400\r
+Message-Id: <1332812236-20387-1-git-send-email-amdragon@mit.edu>\r
+X-Mailer: git-send-email 1.7.7.2\r
+X-Brightmail-Tracker:\r
+ H4sIAAAAAAAAA+NgFupjkeLIzCtJLcpLzFFi42IR4hTV1r0gWehvcGqahcX1mzOZHRg9nq26\r
+       xRzAGMVlk5Kak1mWWqRvl8CV8WBlacE9porj+5YyNjAuZepi5OSQEDCRWLZ2LjOELSZx4d56\r
+       ti5GLg4hgX2MEudbZjFBOOcYJRbsbGWBcJ4zSUzZsZ8VwrnIKHGoqZcVpJ9NQENi2/7ljCC2\r
+       iIC0xM67s4HiHBzCAuYSC1b4goRZBFQl1i6ZyQZi8wo4SGz6dQLqDAWJGVOuME5g5FnAyLCK\r
+       UTYlt0o3NzEzpzg1Wbc4OTEvL7VI10wvN7NELzWldBMjyNvsLso7GP8cVDrEKMDBqMTDazi9\r
+       wF+INbGsuDL3EKMkB5OSKC8vMFSE+JLyUyozEosz4otKc1KLDzFKcDArifDePAlUzpuSWFmV\r
+       WpQPk5LmYFES59XQeucnJJCeWJKanZpakFoEk5Xh4FCS4OUBGSpYlJqeWpGWmVOCkGbi4AQZ\r
+       zgM0XAekhre4IDG3ODMdIn+KUVFKnJcRJCEAksgozYPrhUXjK0ZxoFeEeWVBqniAkQzX/Qpo\r
+       MBPQ4CVH8kEGlyQipKQaGLOX/FJ1mL7mQPeM6dINbcEBR5PEciXDX/o6sRse0/1/Y8PWs2Hi\r
+       e7+El5TNfWry5e+fppMMnbzbnl5tP2v1TfzuBde4DX/mvkhiz3v80vbzmbfFbncvf3/wR/NC\r
+       uqD8oeZDL+qfTH30nOk6axTL98RN55pT+/cLvWf5dP529snZVcaa/WUN25mUWIozEg21mIuK\r
+       EwG29zcUoQIAAA==\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: Tue, 27 Mar 2012 01:37:23 -0000\r
+\r
+Currently, Emacs does not escape message ID queries and is\r
+inconsistent about quoting them.  This patch centralizes this in one\r
+function that always produces a properly quoted and escaped message ID\r
+query.\r
+\r
+With this, Emacs no longer gets confused by Tomi's crazy message,\r
+  id:"id:""1332281811-24710-2b-git-send-email-tomi.ollila@iki.fi"""\r
+\r