1 Return-Path: <bremner@unb.ca>
\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 93C6F40D148
\r
6 for <notmuch@notmuchmail.org>; Sun, 24 Oct 2010 14:01:51 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-2.6 tagged_above=-999 required=5
\r
12 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7] autolearn=ham
\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 gY7BJGA67+0X for <notmuch@notmuchmail.org>;
\r
16 Sun, 24 Oct 2010 14:01:37 -0700 (PDT)
\r
17 Received: from tempo.its.unb.ca (tempo.its.unb.ca [131.202.1.21])
\r
18 by olra.theworths.org (Postfix) with ESMTP id AD9A440D155
\r
19 for <notmuch@notmuchmail.org>; Sun, 24 Oct 2010 14:01:14 -0700 (PDT)
\r
20 Received: from rocinante.cs.unb.ca
\r
21 (fctnnbsc30w-142167176217.pppoe-dynamic.High-Speed.nb.bellaliant.net
\r
22 [142.167.176.217]) (authenticated bits=0)
\r
23 by tempo.its.unb.ca (8.13.8/8.13.8) with ESMTP id o9OL1BmO017808
\r
24 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NO)
\r
25 for <notmuch@notmuchmail.org>; Sun, 24 Oct 2010 18:01:14 -0300
\r
26 Received: from bremner by rocinante.cs.unb.ca with local (Exim 4.72)
\r
27 (envelope-from <bremner@unb.ca>) id 1PA7gl-0006Oi-Ao
\r
28 for notmuch@notmuchmail.org; Sun, 24 Oct 2010 18:01:11 -0300
\r
29 From: david@tethera.net
\r
30 To: notmuch@notmuchmail.org
\r
31 Subject: Second draft of logging patches
\r
32 Date: Sun, 24 Oct 2010 18:01:02 -0300
\r
33 Message-Id: <1287954066-24512-1-git-send-email-david@tethera.net>
\r
34 X-Mailer: git-send-email 1.7.1
\r
35 In-Reply-To: <1286803617-17328-1-git-send-email-david@tethera.net>
\r
36 References: <1286803617-17328-1-git-send-email-david@tethera.net>
\r
37 X-BeenThere: notmuch@notmuchmail.org
\r
38 X-Mailman-Version: 2.1.13
\r
40 List-Id: "Use and development of the notmuch mail system."
\r
41 <notmuch.notmuchmail.org>
\r
42 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
43 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
44 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
45 List-Post: <mailto:notmuch@notmuchmail.org>
\r
46 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
47 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
48 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
49 X-List-Received-Date: Sun, 24 Oct 2010 21:01:52 -0000
\r
51 Here is my second try at logging, taking into account the feedback I
\r
52 got from Rob and Michal. There is definitely some tidying to do; in
\r
53 particular I know the protoypes in public headers need
\r
54 documentation. Also, I should add a configuration option to
\r
55 enable configuration by command or something like that.
\r
57 It does do write-ahead logging for tag changes, based on calls to
\r
58 notmuch_message_(freeze|thaw).
\r
60 It is more or less hardcoded to output to .notmuch/log
\r
62 At the moment the buffering is line by line, but in principle this
\r
63 just needs to be changed in one place (the call to notmuch_log_open).
\r
65 Currently logging is disabled by default, unless a call to
\r
66 notmuch_database_open_log is made. In the long run, if we keep this
\r
67 code, then maybe the API of notmuch_database_open should be
\r
68 modified to optionally enable logging.
\r