[PATCH 1/4] Add user.other_name property to associate names with other_email.
[notmuch-archives.git] / fc / 4158495e77b5445facd0147322e32d1fd73b80
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
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 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
39 MIME-Version: 1.0\r
40 Content-Type: text/plain\r
41 X-BeenThere: notmuch@notmuchmail.org\r
42 X-Mailman-Version: 2.1.13\r
43 Precedence: list\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
54 \r
55 On Wed, Feb 11 2015, Tomi Ollila <tomi.ollila@iki.fi> wrote:\r
56 \r
57 > On Tue, Feb 10 2015, Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net> wrote:\r
58 >\r
59 >> Tomi Ollila <tomi.ollila@iki.fi> writes:\r
60 \r
61 >> It seems to me that all of the following are true in this case:\r
62 >>\r
63 >> 1. Emacs executes the user's default shell to start zathura.\r
64 >\r
65 > That's stupid! it should run /bin/sh.\r
66 >\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
71 >\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
75 >\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
78 \r
79 ... but we could let-bind shell-file-name...\r
80 \r
81 >\r
82 > Tomi\r
83 >\r
84 >>\r
85 >> 2. For this, Emacs escapes the filename.\r
86 >>\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
89 >>\r
90 >> 4. The rc(1) shell splits on spaces, as it knows no backslash escaping.\r
91 >>\r
92 >> 5. The shell executes zathura with three arguments, all bogus filenames.\r
93 >>\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
96 >>\r
97 >> Greetings,\r
98 >> -- \r
99 >> Nils Dagsson Moskopp // erlehmann\r