[PATCH 2/5] Add quotes around id:"message-id" queries.
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Thu, 1 Jul 2010 16:08:24 +0000 (20:08 +0400)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:09 +0000 (09:37 -0800)
17/d58f15147fc04fe1ff6cfd392fb936c595ddd3 [new file with mode: 0644]

diff --git a/17/d58f15147fc04fe1ff6cfd392fb936c595ddd3 b/17/d58f15147fc04fe1ff6cfd392fb936c595ddd3
new file mode 100644 (file)
index 0000000..a77db8c
--- /dev/null
@@ -0,0 +1,97 @@
+Return-Path: <dmitry.kurochkin@gmail.com>\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 8298840B94A\r
+       for <notmuch@notmuchmail.org>; Thu,  1 Jul 2010 09:09:18 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.999\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5\r
+       tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
+       DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001] autolearn=ham\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 zHeHceme3Ofi for <notmuch@notmuchmail.org>;\r
+       Thu,  1 Jul 2010 09:09:06 -0700 (PDT)\r
+Received: from mail-fx0-f53.google.com (mail-fx0-f53.google.com\r
+       [209.85.161.53])\r
+       by olra.theworths.org (Postfix) with ESMTP id 93CF44196F3\r
+       for <notmuch@notmuchmail.org>; Thu,  1 Jul 2010 09:08:55 -0700 (PDT)\r
+Received: by mail-fx0-f53.google.com with SMTP id 19so1776530fxm.26\r
+       for <notmuch@notmuchmail.org>; Thu, 01 Jul 2010 09:08:55 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
+       h=domainkey-signature:received:received:from:to:cc:subject:date\r
+       :message-id:x-mailer:in-reply-to:references;\r
+       bh=RZUwZ9VzdGqOJtl/CFSOEwqBrbr8nq/FDGQl4QzTsOU=;\r
+       b=sPhLMSd2GduVjdAAlKGIW7mWC6tRkn56pxVt6BnG1OC4KBdEP3He+2wQUXT2r6c5Ux\r
+       23XkPSTshXLrZmMgVil56Ealb5Ao5/c6wGfA3RC/q0HLBDIG6oIHB94v8sPOyuN7NB8a\r
+       87mn6+Q/1JjT1momB/udVOIKNmVk7OoNkYbWE=\r
+DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
+       h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references;\r
+       b=mvaiWUNXH/HzERm8l0TV9msSC9J7LdO61DvJUd7j5Ao5YjPF+2yVtOQ+gDYbNKWPtB\r
+       5slh662GVaVg7qyN5FSkZ/2+nW9a2tNJjsEUOsuuXCB8IwxWnPWcVYZ9D+fQ20r/BTuQ\r
+       pmuyWuOPKMoZn9fysNGvHKiyuPA8AxJkECrTQ=\r
+Received: by 10.223.56.27 with SMTP id w27mr9774045fag.37.1278000534914;\r
+       Thu, 01 Jul 2010 09:08:54 -0700 (PDT)\r
+Received: from localhost ([91.144.186.21])\r
+       by mx.google.com with ESMTPS id l18sm24641373fab.0.2010.07.01.09.08.53\r
+       (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
+       Thu, 01 Jul 2010 09:08:53 -0700 (PDT)\r
+From: Dmitry Kurochkin <dmitry.kurochkin@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/5] Add quotes around id:"message-id" queries.\r
+Date: Thu,  1 Jul 2010 20:08:24 +0400\r
+Message-Id: <1278000507-22290-3-git-send-email-dmitry.kurochkin@gmail.com>\r
+X-Mailer: git-send-email 1.7.1\r
+In-Reply-To: <1278000507-22290-1-git-send-email-dmitry.kurochkin@gmail.com>\r
+References: <1278000507-22290-1-git-send-email-dmitry.kurochkin@gmail.com>\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: Thu, 01 Jul 2010 16:09:18 -0000\r
+\r
+---\r
+ emacs/notmuch-message.el |    2 +-\r
+ emacs/notmuch-show.el    |    2 +-\r
+ 2 files changed, 2 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-message.el b/emacs/notmuch-message.el\r
+index d5c96c2..4bc76b2 100644\r
+--- a/emacs/notmuch-message.el\r
++++ b/emacs/notmuch-message.el\r
+@@ -45,7 +45,7 @@ the \"inbox\" and \"todo\", you would set\r
+                              str))\r
+                         notmuch-message-replied-tags)))\r
+       (apply 'notmuch-call-notmuch-process "tag"\r
+-             (append tags (list (concat "id:" (car (car rep)))) nil))))))\r
++             (append tags (list (concat "id:\"" (car (car rep)) "\"")) nil))))))\r
\r
+ (add-hook 'message-send-hook 'notmuch-message-mark-replied)\r
\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index a845efc..c5e88f4 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -730,7 +730,7 @@ All currently available key bindings:\r
\r
+ (defun notmuch-show-get-message-id (&optional props)\r
+   "Return the message id of the current message."\r
+-  (concat "id:" (notmuch-show-get-prop :id props)))\r
++  (concat "id:\"" (notmuch-show-get-prop :id props) "\""))\r
\r
+ ;; dme: Would it make sense to use a macro for many of these?\r
\r
+-- \r
+1.7.1\r
+\r