Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 65 / 1f307eae038bad2c1f6d21e6b93d77cd27da64
1 Return-Path: <dkg@fifthhorseman.net>\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 arlo.cworth.org (Postfix) with ESMTP id 963B96DE13EF\r
6  for <notmuch@notmuchmail.org>; Fri, 11 Dec 2015 14:25:17 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.014\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.014 tagged_above=-999 required=5\r
12  tests=[AWL=-0.014] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id THjZOwSQHXIq for <notmuch@notmuchmail.org>;\r
16  Fri, 11 Dec 2015 14:25:16 -0800 (PST)\r
17 Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108])\r
18  by arlo.cworth.org (Postfix) with ESMTP id 097696DE005F\r
19  for <notmuch@notmuchmail.org>; Fri, 11 Dec 2015 14:25:16 -0800 (PST)\r
20 Received: from fifthhorseman.net (unknown [38.109.115.130])\r
21  by che.mayfirst.org (Postfix) with ESMTPSA id 237BCF984;\r
22  Fri, 11 Dec 2015 17:25:15 -0500 (EST)\r
23 Received: by fifthhorseman.net (Postfix, from userid 1000)\r
24  id 41B421FF87; Fri, 11 Dec 2015 17:25:15 -0500 (EST)\r
25 From: Daniel Kahn Gillmor <dkg@fifthhorseman.net>\r
26 To: Tomi Ollila <tomi.ollila@iki.fi>, Notmuch Mail <notmuch@notmuchmail.org>\r
27 Subject: Re: [PATCH 7/9] add a gpg_path value for notmuch_database_t\r
28 In-Reply-To: <m21tas7ifa.fsf@guru.guru-group.fi>\r
29 References: <1449718786-28000-1-git-send-email-dkg@fifthhorseman.net>\r
30  <1449718786-28000-8-git-send-email-dkg@fifthhorseman.net>\r
31  <m21tas7ifa.fsf@guru.guru-group.fi>\r
32 User-Agent: Notmuch/0.21 (http://notmuchmail.org) Emacs/24.5.1\r
33  (x86_64-pc-linux-gnu)\r
34 Date: Fri, 11 Dec 2015 17:25:15 -0500\r
35 Message-ID: <87mvtgfws4.fsf@alice.fifthhorseman.net>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.20\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42  <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
44  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
49  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Fri, 11 Dec 2015 22:25:17 -0000\r
51 \r
52 On Fri 2015-12-11 17:02:33 -0500, Tomi Ollila wrote:\r
53 > The above code finds gpg/gpg2 (when called w/ these args) from\r
54 > _CS_PATH (seems to be /bin:/usr/bin by default in linux (tried to\r
55 > look how this set in *BSD -- initially it looks like /usr/local/bin\r
56 > not included but... maybe we let them to complain if this is the case\r
57 > ... :/)\r
58 > ... anyway, the full found path is not set anywhere -- how is it found\r
59 > when used (exec*p() using $PATH? :O)\r
60 \r
61 Hm, according to exec(3):\r
62 \r
63    Special semantics for execlp() and execvp()\r
64        The execlp(), execvp(), and execvpe() functions duplicate the\r
65        actions of the shell in searching for an executable file if the\r
66        specified filename does not contain a slash (/) character.  The\r
67        file is sought in the colon-separated list of directory pathnames\r
68        specified in the PATH environment variable.  If this variable\r
69        isn't defined, the path list defaults to the current directory\r
70        followed by the list of directories returned by\r
71        confstr(_CS_PATH).  (This confstr(3) call typically returns the\r
72        value "/bin:/usr/bin".)\r
73 \r
74 So this code probably also ought to be searching $PATH as well.  yuck.\r
75 You'd think there would be a commonly-available function for doing this\r
76 specific check without having to actually try to exec() something.\r
77 \r
78          --dkg\r