Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / cf / d1203a667ef370b4b72b1dfd8e205bb6e3cef3
1 Return-Path: <amdragon@mit.edu>\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 715B7431FAE\r
6         for <notmuch@notmuchmail.org>; Thu, 17 May 2012 21:13:55 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.7\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
12         tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 tdhbEzc0nGX1 for <notmuch@notmuchmail.org>;\r
16         Thu, 17 May 2012 21:13:54 -0700 (PDT)\r
17 Received: from dmz-mailsec-scanner-7.mit.edu (DMZ-MAILSEC-SCANNER-7.MIT.EDU\r
18         [18.7.68.36])\r
19         by olra.theworths.org (Postfix) with ESMTP id EB1D5431FD4\r
20         for <notmuch@notmuchmail.org>; Thu, 17 May 2012 21:13:52 -0700 (PDT)\r
21 X-AuditID: 12074424-b7fae6d000000906-f6-4fb5cc80a3d0\r
22 Received: from mailhub-auth-4.mit.edu ( [18.7.62.39])\r
23         by dmz-mailsec-scanner-7.mit.edu (Symantec Messaging Gateway) with SMTP\r
24         id 44.51.02310.08CC5BF4; Fri, 18 May 2012 00:13:52 -0400 (EDT)\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])\r
26         by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id q4I4DpsQ009476\r
27         for <notmuch@notmuchmail.org>; Fri, 18 May 2012 00:13:52 -0400\r
28 Received: from drake.mit.edu\r
29         (209-6-116-242.c3-0.arl-ubr1.sbo-arl.ma.cable.rcn.com\r
30         [209.6.116.242]) (authenticated bits=0)\r
31         (User authenticated as amdragon@ATHENA.MIT.EDU)\r
32         by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id q4I4Dn4d026780\r
33         (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT)\r
34         for <notmuch@notmuchmail.org>; Fri, 18 May 2012 00:13:51 -0400 (EDT)\r
35 Received: from amthrax by drake.mit.edu with local (Exim 4.77)\r
36         (envelope-from <amdragon@mit.edu>) id 1SVEZZ-0000yp-Io\r
37         for notmuch@notmuchmail.org; Fri, 18 May 2012 00:13:49 -0400\r
38 From: Austin Clements <amdragon@MIT.EDU>\r
39 To: notmuch@notmuchmail.org\r
40 Subject: [PATCH 0/9] Fix directory lookup on read-only databases\r
41 Date: Fri, 18 May 2012 00:13:33 -0400\r
42 Message-Id: <1337314423-3702-1-git-send-email-amdragon@mit.edu>\r
43 X-Mailer: git-send-email 1.7.10\r
44 X-Brightmail-Tracker:\r
45  H4sIAAAAAAAAA+NgFupjkeLIzCtJLcpLzFFi42IRYrdT1204s9XfYGsDh8X1mzOZHRg9nq26\r
46         xRzAGMVlk5Kak1mWWqRvl8CVMa+VpeAoV8WelTPZGhifs3cxcnJICJhIND66ygZhi0lcuLce\r
47         yObiEBLYxyjx5ckrJgjnHKPEsTfTWCCcv0wSmybdYQRpERLYwShx5bUuiM0moCGxbf9ysLiI\r
48         gLTEzruzWUFsYQEHibWvJjGB2CwCqhIX3j0Es3kF7CUuX54DdYa8xNP7fWwTGHkWMDKsYpRN\r
49         ya3SzU3MzClOTdYtTk7My0st0jXXy80s0UtNKd3ECPa2i8oOxuZDSocYBTgYlXh4BeZv9Rdi\r
50         TSwrrsw9xCjJwaQkyvv9JFCILyk/pTIjsTgjvqg0J7X4EKMEB7OSCK9sN1CONyWxsiq1KB8m\r
51         Jc3BoiTOq6H1zk9IID2xJDU7NbUgtQgmK8PBoSTBu+k0UKNgUWp6akVaZk4JQpqJgxNkOA/Q\r
52         8EyQGt7igsTc4sx0iPwpRkUpcd4ykIQASCKjNA+uFxaNrxjFgV4R5p0AUsUDjGS47ldAg5mA\r
53         BpflbgIZXJKIkJJqYDTQO3Bnyt9LLz9cfWTtJ3s5YcuclxM9uDwj1PT/Hb62/IJn9qGJRQKc\r
54         WrkHI2c9Tdj+n7G++IP321zDNzb7JiqoZh54GtQpdGXawfgoP8nNzZ/Pr7PR2cXiwL9I6sol\r
55         5pMefjsXGn9uW7DgSNa/V4x8K16ov9y/zMw0wiUkrZWzJ0o2ykpM84wSS3FGoqEWc1FxIgD1\r
56         G1kOoQIAAA==\r
57 X-BeenThere: notmuch@notmuchmail.org\r
58 X-Mailman-Version: 2.1.13\r
59 Precedence: list\r
60 List-Id: "Use and development of the notmuch mail system."\r
61         <notmuch.notmuchmail.org>\r
62 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
63         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
64 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
65 List-Post: <mailto:notmuch@notmuchmail.org>\r
66 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
67 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
68         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
69 X-List-Received-Date: Fri, 18 May 2012 04:13:55 -0000\r
70 \r
71 This fixes notmuch_database_get_directory and\r
72 notmuch_database_find_message_by_filename so that they don't attempt\r
73 to create missing directory documents.  This makes them work on\r
74 read-only databases (and prevents n_d_f_m_b_f from crashing\r
75 unceremoniously on read-only databases).\r
76 \r
77 Unfortunately, there are several functions involved in directory\r
78 document lookup, so the first three patches simply add a creation flag\r
79 at each necessary layer.  The remaining patches then fix up the two\r
80 API functions and their uses.\r
81 \r
82 If we do a 0.13.1 bug fix release, these patches could go in to\r
83 complement the API changes made in 0.13 to support these fixes.  David\r
84 can make that call.\r
85 \r
86 There are several patches, but they're all short and incremental.\r
87 \r
88  bindings/python/notmuch/database.py |   11 -----------\r
89  lib/database.cc                     |   40 +++++++++++++++++++++++++---------------\r
90  lib/directory.cc                    |   41 +++++++++++++++++++++++++++++++++++------\r
91  lib/message.cc                      |   11 +++++------\r
92  lib/notmuch-private.h               |   13 +++++++++++++\r
93  lib/notmuch.h                       |   10 ++--------\r
94  notmuch-new.c                       |   36 +++++++-----------------------------\r
95  test/python                         |    8 ++++++++\r
96  8 files changed, 95 insertions(+), 75 deletions(-)\r
97 \r