[PATCH] emacs: Fix notmuch-show-pipe-message to use notmuch-command variable
authorMichal Sojka <sojkam1@fel.cvut.cz>
Sat, 6 Nov 2010 23:09:18 +0000 (00:09 +0100)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:37:24 +0000 (09:37 -0800)
63/d90cb6e83dc0242643c80773b5a4c6e33b4ca1 [new file with mode: 0644]

diff --git a/63/d90cb6e83dc0242643c80773b5a4c6e33b4ca1 b/63/d90cb6e83dc0242643c80773b5a4c6e33b4ca1
new file mode 100644 (file)
index 0000000..5a5b71d
--- /dev/null
@@ -0,0 +1,75 @@
+Return-Path: <wsh@resox.2x.cz>\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 1CC234196F2\r
+       for <notmuch@notmuchmail.org>; Sat,  6 Nov 2010 16:09:55 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -1.9\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5\r
+       tests=[BAYES_00=-1.9] 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 PXAKXZmF9LCa for <notmuch@notmuchmail.org>;\r
+       Sat,  6 Nov 2010 16:09:44 -0700 (PDT)\r
+Received: from smtp.nextra.cz (smtp.nextra.cz [212.65.193.3])\r
+       by olra.theworths.org (Postfix) with ESMTP id 8776C4196F0\r
+       for <notmuch@notmuchmail.org>; Sat,  6 Nov 2010 16:09:44 -0700 (PDT)\r
+Received: from resox.2x.cz (unknown [213.29.198.144])\r
+       by smtp.nextra.cz (Postfix) with ESMTP id E4E1D891F1;\r
+       Sun,  7 Nov 2010 00:09:42 +0100 (CET)\r
+Received: from wsh by resox.2x.cz with local (Exim 4.72)\r
+       (envelope-from <wsh@resox.2x.cz>)\r
+       id 1PErt6-00032t-HB; Sun, 07 Nov 2010 00:09:32 +0100\r
+From: Michal Sojka <sojkam1@fel.cvut.cz>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] emacs: Fix notmuch-show-pipe-message to use notmuch-command\r
+       variable\r
+Date: Sun,  7 Nov 2010 00:09:18 +0100\r
+Message-Id: <1289084958-11681-1-git-send-email-sojkam1@fel.cvut.cz>\r
+X-Mailer: git-send-email 1.7.1\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: Sat, 06 Nov 2010 23:09:55 -0000\r
+\r
+Previously notmuch command name was hardcoded into this function,\r
+which made remote use of pipe command impossible.\r
+---\r
+ emacs/notmuch-show.el |    5 +++--\r
+ 1 files changed, 3 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el\r
+index 3daa868..ae483dd 100644\r
+--- a/emacs/notmuch-show.el\r
++++ b/emacs/notmuch-show.el\r
+@@ -937,12 +937,13 @@ than only the current message."\r
+   (let (shell-command)\r
+     (if entire-thread\r
+       (setq shell-command \r
+-            (concat "notmuch show --format=mbox "\r
++            (concat notmuch-command " show --format=mbox "\r
+                     (shell-quote-argument\r
+                      (mapconcat 'identity (notmuch-show-get-message-ids-for-open-messages) " OR "))\r
+                     " | " command))\r
+       (setq shell-command\r
+-          (concat "notmuch show --format=raw " (shell-quote-argument (notmuch-show-get-message-id)) " | " command)))\r
++          (concat notmuch-command " show --format=raw "\r
++                  (shell-quote-argument (notmuch-show-get-message-id)) " | " command)))\r
+     (start-process-shell-command "notmuch-pipe-command" "*notmuch-pipe*" shell-command)))\r
\r
+ (defun notmuch-show-add-tags-worker (current-tags add-tags)\r
+-- \r
+1.7.1\r
+\r