1 Return-Path: <servilio@gmail.com>
\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 420A7431FD0
\r
6 for <notmuch@notmuchmail.org>; Sat, 14 May 2011 21:40:23 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5
\r
12 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
\r
13 FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id og184sYJVEQv for <notmuch@notmuchmail.org>;
\r
17 Sat, 14 May 2011 21:40:22 -0700 (PDT)
\r
18 Received: from mail-px0-f182.google.com (mail-px0-f182.google.com
\r
19 [209.85.212.182]) (using TLSv1 with cipher RC4-MD5 (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id 61AF8431FB6
\r
22 for <notmuch@notmuchmail.org>; Sat, 14 May 2011 21:40:22 -0700 (PDT)
\r
23 Received: by pxi20 with SMTP id 20so3321596pxi.41
\r
24 for <notmuch@notmuchmail.org>; Sat, 14 May 2011 21:40:21 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;
\r
26 h=domainkey-signature:mime-version:in-reply-to:references:date
\r
27 :message-id:subject:from:to:cc:content-type
\r
28 :content-transfer-encoding;
\r
29 bh=s+Ob2OIZQnsr9pK9BhMPwpMGEv3nZGDFWn2XQNKqqxY=;
\r
30 b=C5j1h4FuI81SnLd/nDIaamdKcFr3tIZEeA+8ysAjr8/Hy4HLlHTECKVZQ0m269Xxs8
\r
31 H5Fi8HG1f2y6W50tLhwEiZUKVnglC2lCsRlbCBD/5zMKSeCLH4LQ3CqnR66vHhv1N5GK
\r
32 5AAiCoA6Gwy+gGWxXkk1doAR4bhPl9dYKEuWA=
\r
33 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;
\r
34 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
\r
35 :cc:content-type:content-transfer-encoding;
\r
36 b=oHWd4MLELNteiWAtnHH5w6VlV6+QFXc1ilbzf11jTJsWGUxtSQAd1/xD46CdNPVTcl
\r
37 txYvjOC5OaVOafRzWK+WsvjJ10DZEYC4hAcjMeZbXLVTct7ud/8psZnDGjxpAIfyHCnC
\r
38 uH9MfqZAbwVDI6qA55DKKg48rNj+EtPDQe0gE=
\r
40 Received: by 10.68.56.134 with SMTP id a6mr5085336pbq.267.1305434419643; Sat,
\r
41 14 May 2011 21:40:19 -0700 (PDT)
\r
42 Received: by 10.68.51.198 with HTTP; Sat, 14 May 2011 21:40:19 -0700 (PDT)
\r
43 In-Reply-To: <m3r58448ip.fsf@zsu.kismala.com>
\r
44 References: <m3sjsv2kw2.fsf@zsu.kismala.com>
\r
45 <BANLkTimvs8ttQCL0AK9UrjcxxgaeqQ9fSg@mail.gmail.com>
\r
46 <87zkmwsc2d.fsf@servo.factory.finestructure.net>
\r
47 <m38vug5tuy.fsf@zsu.kismala.com> <87ei45rjm4.fsf@flamingspork.com>
\r
48 <m3r58448ip.fsf@zsu.kismala.com>
\r
49 Date: Sun, 15 May 2011 00:40:19 -0400
\r
50 Message-ID: <BANLkTikZ2V3P4XAoJdWRDK2iaJr2XmHN3Q@mail.gmail.com>
\r
51 Subject: Re: storing From and Subject in xapian
\r
52 From: servilio <servilio@gmail.com>
\r
53 To: Istvan Marko <notmuch@kismala.com>
\r
54 Content-Type: text/plain; charset=UTF-8
\r
55 Content-Transfer-Encoding: quoted-printable
\r
56 Cc: notmuch@notmuchmail.org, Austin Clements <amdragon@mit.edu>
\r
57 X-BeenThere: notmuch@notmuchmail.org
\r
58 X-Mailman-Version: 2.1.13
\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: Sun, 15 May 2011 04:40:23 -0000
\r
71 On 12 May 2011 04:39, Istvan Marko <notmuch@kismala.com> wrote:
\r
72 > Stewart Smith <stewart@flamingspork.com> writes:
\r
74 >> Would it be possible to progressively fill the DB with the new data?
\r
78 >> if Subject/From not in db for message
\r
79 >> =C2=A0 =C2=A0add Subject/From for this message to DB.
\r
81 > I started looking into this but then realized that notmuch search opens
\r
82 > the database in read-only mode so it cannot make updates. It might be
\r
83 > desirable to keep it that way for safety and locking reasons.
\r
85 What about the following:
\r
87 - increase NOTMUCH_DATABASE_VERSION[1]
\r
88 - update notmuch_database_upgrade[2] to fill in the new data for the
\r
89 documents missing it
\r
90 - include an upgradedb command that wraps notmuch_database_upgrade[2]
\r
91 - have notmuch search prints a warning about running a DB version less
\r
92 than the runtime and suggests running upgradedb
\r
98 [1] http://git.notmuchmail.org/git/notmuch/blob/HEAD:/lib/database.cc#l39
\r
99 [2] http://git.notmuchmail.org/git/notmuch/blob/HEAD:/lib/database.cc#l765
\r