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 8312B431FD6
\r
6 for <notmuch@notmuchmail.org>; Fri, 20 Feb 2015 01:36:35 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\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 UO0Igk1d6aJK for <notmuch@notmuchmail.org>;
\r
16 Fri, 20 Feb 2015 01:36:32 -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 390B6431FC9
\r
19 for <notmuch@notmuchmail.org>; Fri, 20 Feb 2015 01:36:32 -0800 (PST)
\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])
\r
21 by guru.guru-group.fi (Postfix) with ESMTP id AD21E100090;
\r
22 Fri, 20 Feb 2015 11:25:13 +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: <m24mqs63ak.fsf@guru.guru-group.fi>
\r
28 References: <87twyurc78.fsf@dieweltistgarnichtso.net>
\r
29 <m24mqu455x.fsf@guru.guru-group.fi>
\r
30 <8761b9pu11.fsf@dieweltistgarnichtso.net>
\r
31 <m24mqs63ak.fsf@guru.guru-group.fi>
\r
32 User-Agent: Notmuch/0.19+53~gb45d2f9 (http://notmuchmail.org) Emacs/24.3.1
\r
33 (x86_64-unknown-linux-gnu)
\r
34 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL
\r
35 $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F
\r
36 !)g;OY^,BjTbr)Np:%c_o'jj,Z
\r
37 Date: Fri, 20 Feb 2015 11:25:13 +0200
\r
38 Message-ID: <m2ioexorye.fsf@guru.guru-group.fi>
\r
40 Content-Type: text/plain
\r
41 X-BeenThere: notmuch@notmuchmail.org
\r
42 X-Mailman-Version: 2.1.13
\r
44 List-Id: "Use and development of the notmuch mail system."
\r
45 <notmuch.notmuchmail.org>
\r
46 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
47 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
48 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
49 List-Post: <mailto:notmuch@notmuchmail.org>
\r
50 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
51 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
52 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
53 X-List-Received-Date: Fri, 20 Feb 2015 09:36:35 -0000
\r
55 On Wed, Feb 11 2015, Tomi Ollila <tomi.ollila@iki.fi> wrote:
\r
57 > On Tue, Feb 10 2015, Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> wrote:
\r
59 >> Tomi Ollila <tomi.ollila@iki.fi> writes:
\r
61 >> It seems to me that all of the following are true in this case:
\r
63 >> 1. Emacs executes the user's default shell to start zathura.
\r
65 > That's stupid! it should run /bin/sh.
\r
67 > I looked into emacs-23.1/lisp/gnus/mm-decode.el and while I could not
\r
68 > pinpoint the exact location where this shell command was invoked, I
\r
69 > found some similar code where emacs variable `shell-file-name` was used
\r
70 > (M-x describe-variable shell-file-name returns "/bin/zsh" for me).
\r
72 > So, you could just test by (setq shell-file-name "/bin/sh") (or
\r
73 > just M-x set-variable shell-file-name /bin/sh in live emacs) and then
\r
74 > test whether those pdf:s open right.
\r
76 > we cannot do much how (mm in) emacs escapes those variables (and why it
\r
77 > uses shell to execute that command line)...
\r
79 ... but we could let-bind shell-file-name...
\r
85 >> 2. For this, Emacs escapes the filename.
\r
87 >> 3. Emacs applies the wrong escaping to the filename. Note that single
\r
88 >> quotes are interoperable between shells, while backslashes are not.
\r
90 >> 4. The rc(1) shell splits on spaces, as it knows no backslash escaping.
\r
92 >> 5. The shell executes zathura with three arguments, all bogus filenames.
\r
94 >> I cannot pinpoint where all this is happening, but I would suggest to
\r
95 >> just execve() zathura with a single unescaped filename as its argument.
\r
99 >> Nils Dagsson Moskopp // erlehmann
\r