Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / 7b / a7d1d3787b5c7df654920b415a00c3cb267c24
1 Return-Path: <tomi.ollila@iki.fi>\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 AF217431FD9\r
6         for <notmuch@notmuchmail.org>; Mon,  9 Feb 2015 23:06:29 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 2.438\r
10 X-Spam-Level: **\r
11 X-Spam-Status: No, score=2.438 tagged_above=-999 required=5\r
12         tests=[DNS_FROM_AHBL_RHSBL=2.438] autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id vkl9MUo6lKUo for <notmuch@notmuchmail.org>;\r
16         Mon,  9 Feb 2015 23:06:26 -0800 (PST)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18         by olra.theworths.org (Postfix) with ESMTP id 31D78431FD2\r
19         for <notmuch@notmuchmail.org>; Mon,  9 Feb 2015 23:06:26 -0800 (PST)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21         by guru.guru-group.fi (Postfix) with ESMTP id A0FC8100051;\r
22         Tue, 10 Feb 2015 09:06:02 +0200 (EET)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net>,\r
25         notmuch@notmuchmail.org\r
26 Subject: Re: bug report: Emacs notmuch-mode fails attachments with spaces\r
27 In-Reply-To: <87twyurc78.fsf@dieweltistgarnichtso.net>\r
28 References: <87twyurc78.fsf@dieweltistgarnichtso.net>\r
29 User-Agent: Notmuch/0.19+53~gb45d2f9 (http://notmuchmail.org) Emacs/24.3.1\r
30         (x86_64-unknown-linux-gnu)\r
31 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
32         $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
33         !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
34 Date: Tue, 10 Feb 2015 09:06:02 +0200\r
35 Message-ID: <m24mqu455x.fsf@guru.guru-group.fi>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain; charset=utf-8\r
38 Content-Transfer-Encoding: quoted-printable\r
39 X-BeenThere: notmuch@notmuchmail.org\r
40 X-Mailman-Version: 2.1.13\r
41 Precedence: list\r
42 List-Id: "Use and development of the notmuch mail system."\r
43         <notmuch.notmuchmail.org>\r
44 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
45         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
46 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
47 List-Post: <mailto:notmuch@notmuchmail.org>\r
48 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
49 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
50         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
51 X-List-Received-Date: Tue, 10 Feb 2015 07:06:30 -0000\r
52 \r
53 On Mon, Feb 09 2015, Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> w=\r
54 rote:\r
55 \r
56 > Dear notmuch developers,\r
57 >\r
58 >\r
59 > I use notmuch-mode for GNU Emacs for managing my email.\r
60 >\r
61 > I think I have found a bug in notmuch-mode: If I do =E2=80=9C.-v=E2=80=9D=\r
62  on the line =E2=80=9C[\r
63 > 2015 _ Richtlinien.pdf: application/pdf ]=E2=80=9D, then notmuch will ope=\r
64 n three\r
65 > windows of zathura (the PDF viewer I use).\r
66 >\r
67 > It seems to me that someone here either forgot quoting or decided to\r
68 > split filenames on spaces. I suggest that =E2=80=9C2015 _ Richtlinien.pdf:\r
69 > application/pdf=E2=80=9D should be quoted in notmuch-show-view-part.\r
70 >\r
71 > Note that saving attachment (=E2=80=9C.-s=E2=80=9D, notmuch-show-save-par=\r
72 t) generally\r
73 > works even if the attachment file names have spaces. In case it matters,\r
74 > I normally use the rc(1) shell in Debian <http://tobold.org/article/rc>.\r
75 \r
76 This code handles the saving and displaying in question (quick look hop i\r
77 am right :)\r
78 \r
79    2282 (defun notmuch-show-save-part ()\r
80    2283   "Save the MIME part containing point to a file."\r
81    2284   (interactive)\r
82    2285   (notmuch-show-apply-to-current-part-handle #'mm-save-part))\r
83    2286=20\r
84    2287 (defun notmuch-show-view-part ()\r
85    2288   "View the MIME part containing point in an external viewer."\r
86    2289   (interactive)\r
87    2290   ;; Set mm-inlined-types to nil to force an external viewer\r
88    2291   (let ((mm-inlined-types nil))\r
89    2292     (notmuch-show-apply-to-current-part-handle #'mm-display-part)))\r
90 \r
91 SO, there is 2 options:\r
92 \r
93 1) mm executes save part correctly but not display part\r
94 \r
95 2) there is (shell) wrapper program executing zathura which cannot handle\r
96    arguments with spaces (there is plenty of examples of this!)\r
97 \r
98 \r
99 You could try to check how th external processes are executed by executing:\r
100 \r
101 strace -f -e trace=3Dprocess emacs -f notmuch\r
102 \r
103 (emacs on X is preferable in this case ;)\r
104 \r
105 \r
106 Tomi\r
107 \r
108 \r
109 \r
110 \r
111 \r
112 \r
113 \r
114 \r
115 >\r
116 >\r
117 > Greetings,\r
118 > --=20\r
119 > Nils Dagsson Moskopp // erlehmann\r
120 > <http://dieweltistgarnichtso.net>\r
121 > _______________________________________________\r
122 > notmuch mailing list\r
123 > notmuch@notmuchmail.org\r
124 > http://notmuchmail.org/mailman/listinfo/notmuch\r