Re: [PATCH v4 01/16] add util/search-path.{c, h} to test for executables in $PATH
[notmuch-archives.git] / b6 / 18523f98a8c7cb8bcb6548b6385fc304b8b28c
1 Return-Path: <eric@deptj.eu>\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 832566DE0FC5\r
6  for <notmuch@notmuchmail.org>; Wed, 17 Feb 2016 12:44:34 -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.094\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.094 tagged_above=-999 required=5 tests=[AWL=0.004, \r
12  DKIM_SIGNED=0.1, RCVD_IN_DNSWL_NONE=-0.0001,\r
13  RCVD_IN_MSPIKE_H3=-0.01, \r
14  RCVD_IN_MSPIKE_WL=-0.01, T_DKIM_INVALID=0.01] autolearn=disabled\r
15 Received: from arlo.cworth.org ([127.0.0.1])\r
16  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
17  with ESMTP id RujTulTrhrjg for <notmuch@notmuchmail.org>;\r
18  Wed, 17 Feb 2016 12:44:32 -0800 (PST)\r
19 Received: from mx1.solardns.com (mx1.solardns.com [109.73.127.119])\r
20  by arlo.cworth.org (Postfix) with ESMTPS id 8344B6DE091E\r
21  for <notmuch@notmuchmail.org>; Wed, 17 Feb 2016 12:44:31 -0800 (PST)\r
22 Received: from [213.129.84.218] (helo=luna.solardns.com)\r
23  by mx1.solardns.com with esmtps (TLSv1.2:DHE-RSA-AES256-SHA:256)\r
24  (Exim 4.85) (envelope-from <eric@deptj.eu>) id 1aW8xV-0001G3-2n\r
25  for notmuch@notmuchmail.org; Wed, 17 Feb 2016 20:44:27 +0000\r
26 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=deptj.eu;\r
27  s=default; h=Date:Message-ID:To:Subject:From;\r
28  bh=QUiNPGCK4Yu9l/jdSG4igFSXvmgDbfbTLjIRjE68FHA=; b=Wo9YHcdHx1/b7YwrhI9Ejx2BPZ\r
29  GXYWkE3l+RaCcIqzVtzmn8BhEYpdZDbMp07HYzRb6aWodwtbdKCaZFWq5YyRxFFyHiUNdV6yurBaA\r
30  Zb8auZ/PqIsBCx4mFK5zHSg/Oiq1d21PaC2K1yw+ogPTTaA3RNOw+Jt28F79WYMQL8GU=;\r
31 Received: from [92.135.160.170] (port=44718 helo=bruno.deptj.eu)\r
32  by luna.solardns.com with esmtpsa (TLSv1.2:DHE-RSA-AES256-GCM-SHA384:256)\r
33  (Exim 4.86) (envelope-from <eric@deptj.eu>) id 1aW8xU-0037bh-KA\r
34  for notmuch@notmuchmail.org; Wed, 17 Feb 2016 20:44:24 +0000\r
35 Received: from eric by bruno.deptj.eu with local (Exim 4.84)\r
36  (envelope-from <eric@deptj.eu>) id 1aW8xT-0002qC-8R\r
37  for notmuch@notmuchmail.org; Wed, 17 Feb 2016 21:44:23 +0100\r
38 From: Eric J <eric@deptj.eu>\r
39 Subject: Lost updates to Notmuch database\r
40 To: notmuch@notmuchmail.org\r
41 Message-ID: <337393ce5e2484d64f837a44b2c4f2ea32f91295-NM@bruno.deptj.eu>\r
42 Date: Wed, 17 Feb 2016 21:44:23 +0100 (CET)\r
43 X-AuthUser: deptjeu\r
44 X-Filter-ID:\r
45  s0sct1PQhAABKnZB5plbIZxxbsbMXbbOVqDrOlLQDPCKLoLP9dSDpksiPa3sfcfQiw3bi2TEXpBy\r
46  KOgMDJLxZ2gLr13hkJnqYlE8dI2PqoFC/lGsrXcsS0xY0J18f6o7xB66CWvXcfKDfXjTU++u6wnX\r
47  lL5Lm4Xkn3qRe+MKYG9KBamV5mBRFH60GvshNV8TZuM7jUXIESohoO51xWmU8U0XxLGz4gGrl7np\r
48  YUMMsx7Zx6js8RMGZ+eyCM03IideZE/8G6RrW+hPYRmHOym9VEp4OmAp9SwcFw57ijAOXur1H/aA\r
49  warQpYDOYx/6JtUOKIpz/KyJk6xidDbrtJGeIvwS+mRNB2u5eXMTyiRDCl4blv/7/GYDGL6pBAPx\r
50  3RhxuHrpSpJU4PQlqFj9797wgsGhIeDBws4kvu4hgViYIJSOH7FelTFEA57OugCjQqJvq5XDlSi1\r
51  S/CAqp6x6giLUpAadaOpLL7vzAlHz9Vt0lJbH3q7FSJEAvmcpRDg+DcXMCx8qKfWo/2nfeswSb/v\r
52  XOidX4Ts4xdG+C13IyWeZaJClvAWyUAUCSYHhmge3quet8geXjZWRvaT/RbJ/nX/IFFm7SbdEzck\r
53  901Ob2Iq9tC/Vh1lis0iI/S1HLwoHXf0\r
54 X-Report-Abuse-To: spam@mx1.solardns.com\r
55 X-Filter-Fingerprint:\r
56  IFrWXGses7OKB5S5G8/dJdIz5bb8V0ykx8BnFBnunHBA3cTUQ1R++keuE7RDJ8Kg3RbMLUalw1oC\r
57  mj99/u+Poh38tEMU4IgC4sNz49qn3HHnhRv/ZJ3kEy8bfiAr+Fb/UpndEJ0YoaLytXXo8BMTaVt0\r
58  ARHRi6XGuAluI1udprGClI6bm+u9ssQgM5AHe3Zacv4uJct5wtJvPpZ2dlBHCwDSxr3Vz+LJ/RhM\r
59  2JZ0ECN5dnq47RWft7iCyM9+PbHelB4qP9S6mTzNwoPraFy6ieiDqMHb2a0eZvGOvr7RaxKWGCKO\r
60  us9nABr0Pk/4CplP\r
61 X-Originating-IP: 213.129.84.218\r
62 X-SpamExperts-Domain: out.solardns.com\r
63 X-SpamExperts-Username: 213.129.84.218\r
64 Authentication-Results: solardns.com;\r
65  auth=pass smtp.auth=213.129.84.218@out.solardns.com\r
66 X-SpamExperts-Outgoing-Class: unsure\r
67 X-SpamExperts-Outgoing-Evidence: Combined (0.56)\r
68 X-Recommended-Action: accept\r
69 X-BeenThere: notmuch@notmuchmail.org\r
70 X-Mailman-Version: 2.1.20\r
71 Precedence: list\r
72 List-Id: "Use and development of the notmuch mail system."\r
73  <notmuch.notmuchmail.org>\r
74 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
75  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
76 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
77 List-Post: <mailto:notmuch@notmuchmail.org>\r
78 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
79 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
80  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
81 X-List-Received-Date: Wed, 17 Feb 2016 20:44:34 -0000\r
82 \r
83 Using the API, I am adding single mail files, already in the maildir, to\r
84 the Notmuch database and tagging them. It works, every time, as long as\r
85 I run it one file at a time. \r
86 \r
87 However, if I do it twice, in different processes, at the same time, one\r
88 file is added and tagged properly, the other is not (totally unfindable\r
89 by notmuch search). Neither process reports any error, and they both log\r
90 their actions normally. Actually a third simultaneous process also fails\r
91 to leave any result in the database.\r
92 \r
93 This is in spite of using begin_atomic/end_atomic. I would not have been\r
94 surprised to get Xapian lock errors, but the database_open returns\r
95 success, as does the database_begin_atomic. \r
96 \r
97 The wrapper around the API for Tcl is very simple, and I can not see any\r
98 way for that or Tcl itself to cause this sort of problem. Beyond this,\r
99 I haven't thought of any way to decide if this could be a Notmuch problem\r
100 or a Xapian problem.\r
101 \r
102 The API sequence is:\r
103 \r
104     database_open\r
105     database_begin_atomic\r
106     database_add_message\r
107     (next 4 are a for loop)\r
108     message_get_tags\r
109     tags_valid\r
110     tags_move_to_next\r
111     tags_get\r
112     message_freeze\r
113     message_add_tag\r
114     message_thaw\r
115     message_maildir_flags_to_tags\r
116     message_get_filename\r
117     message_get_message_id\r
118     database_end_atomic\r
119     message_destroy\r
120     database_close\r
121     database_destroy\r
122 \r
123 I didn't realise till it was mostly written, but it is pretty much like\r
124 add_new() in notmuch-new.c .\r
125 \r
126 Eric\r
127 -- \r
128 ms fnd in a lbry\r