Re: [PATCH] VIM: Make an option to save sent mail locally
[notmuch-archives.git] / ad / e412bfabceaae1dbb1a54dd8b7fea83a179964
1 Return-Path: <five9a2@gmail.com>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id D86BA431FBC\r
6         for <notmuch@notmuchmail.org>; Fri, 20 Nov 2009 18:37:36 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 Received: from olra.theworths.org ([127.0.0.1])\r
9         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
10         with ESMTP id tvj5g8OwUi2x for <notmuch@notmuchmail.org>;\r
11         Fri, 20 Nov 2009 18:37:36 -0800 (PST)\r
12 Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com\r
13         [209.85.218.224])\r
14         by olra.theworths.org (Postfix) with ESMTP id 0CE54431FAE\r
15         for <notmuch@notmuchmail.org>; Fri, 20 Nov 2009 18:37:35 -0800 (PST)\r
16 Received: by bwz24 with SMTP id 24so2830528bwz.30\r
17         for <notmuch@notmuchmail.org>; Fri, 20 Nov 2009 18:37:34 -0800 (PST)\r
18 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
19         h=domainkey-signature:received:received:sender:from:to:cc:subject\r
20         :date:message-id:x-mailer:mime-version:content-type;\r
21         bh=uERsGBdf88MmXA5YF8pzf7ejvhi2lD0fTGBnSUjD/3Y=;\r
22         b=nNP+G3hXdPp4PEhdej1Egrs5En4Z6ifLIZRri6QTif/FztwNrZqRn4OmyDEuTvXhh3\r
23         tht4xgd5EHudIVj5haySqhNeu+Ri5NRPj1MCy5/Uu/1lxWAFb3C+OlceLVpTgesOdLP0\r
24         XGVJXzE/yNBDV4NGAA/uD63VUvazSOSaIvxkc=\r
25 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
26         h=sender:from:to:cc:subject:date:message-id:x-mailer:mime-version\r
27         :content-type;\r
28         b=RRqAdaSZeVex0OU/D9ZTGI3SY4v7m9M47n9LivFqJyUBSu/iUPDiPfgxMf1nvk1q2L\r
29         HAjLllY+eE0y3nkT4O8DXxQbKtRIQ1nxFwEVLCPLJABin2tiNcUI7hMZgOXSIo3Je5Cj\r
30         GTYhtuAOFslz4E1p2djM/nyI/9zxiq+qiPVaU=\r
31 Received: by 10.204.11.17 with SMTP id r17mr2200620bkr.41.1258771054539;\r
32         Fri, 20 Nov 2009 18:37:34 -0800 (PST)\r
33 Received: from localhost.localdomain (vawpc43.ethz.ch [129.132.59.11])\r
34         by mx.google.com with ESMTPS id p9sm2299222fkb.14.2009.11.20.18.37.32\r
35         (version=TLSv1/SSLv3 cipher=RC4-MD5);\r
36         Fri, 20 Nov 2009 18:37:33 -0800 (PST)\r
37 Sender: Jed Brown <five9a2@gmail.com>\r
38 From: Jed Brown <jed@59A2.org>\r
39 To: notmuch@notmuchmail.org\r
40 Date: Sat, 21 Nov 2009 03:37:54 +0100\r
41 Message-Id: <1258771074-25997-1-git-send-email-jed@59A2.org>\r
42 X-Mailer: git-send-email 1.6.5.3\r
43 MIME-Version: 1.0\r
44 Content-Type: multipart/mixed; boundary="------------1.6.5.3"\r
45 Subject: [notmuch] [PATCH] Quote file names passed to the shell\r
46 X-BeenThere: notmuch@notmuchmail.org\r
47 X-Mailman-Version: 2.1.12\r
48 Precedence: list\r
49 List-Id: "Use and development of the notmuch mail system."\r
50         <notmuch.notmuchmail.org>\r
51 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
52         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
53 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
54 List-Post: <mailto:notmuch@notmuchmail.org>\r
55 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
56 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
57         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
58 X-List-Received-Date: Sat, 21 Nov 2009 02:37:37 -0000\r
59 \r
60 This is a multi-part message in MIME format.\r
61 --------------1.6.5.3\r
62 Content-Type: text/plain; charset=UTF-8; format=fixed\r
63 Content-Transfer-Encoding: 8bit\r
64 \r
65 \r
66 Prior to this, notmuch-show-pipe-message could not handle file names\r
67 with spaces and similar.\r
68 ---\r
69  notmuch.el |    3 ++-\r
70  1 files changed, 2 insertions(+), 1 deletions(-)\r
71 \r
72 \r
73 --------------1.6.5.3\r
74 Content-Type: text/x-patch;\r
75  name="0001-Quote-file-names-passed-to-the-shell.patch"\r
76 Content-Transfer-Encoding: 8bit\r
77 Content-Disposition: attachment;\r
78  filename="0001-Quote-file-names-passed-to-the-shell.patch"\r
79 \r
80 diff --git a/notmuch.el b/notmuch.el\r
81 index cd3780f..1ca633d 100644\r
82 --- a/notmuch.el\r
83 +++ b/notmuch.el\r
84 @@ -281,7 +281,8 @@ The given command will be executed with the raw contents of the\r
85  current email message as stdin. Anything printed by the command\r
86  to stdout or stderr will appear in the *Messages* buffer."\r
87    (interactive "sPipe message to command: ")\r
88 -  (apply 'start-process-shell-command "notmuch-pipe-command" "*notmuch-pipe*" (split-string (concat command " < " (notmuch-show-get-filename)))))\r
89 +  (apply 'start-process-shell-command "notmuch-pipe-command" "*notmuch-pipe*"\r
90 +        (list command " < " (shell-quote-argument (notmuch-show-get-filename)))))\r
91  \r
92  (defun notmuch-show-move-to-current-message-summary-line ()\r
93    "Move to the beginning of the one-line summary of the current message.\r
94 \r
95 --------------1.6.5.3--\r
96 \r
97 \r