[PATCH] lib: provide _notmuch_database_log_append
[notmuch-archives.git] / 6e / 3aa65bdd65f4ddd75627fb034aed693a2ceb97
1 Return-Path: <amdragon@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 36D91429E22\r
6         for <notmuch@notmuchmail.org>; Thu, 27 Jan 2011 16:08:42 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -0.698\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-0.698 tagged_above=-999 required=5\r
12         tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FROM=0.001,\r
13         HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7] autolearn=unavailable\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 ouf6sBT1QhDp for <notmuch@notmuchmail.org>;\r
17         Thu, 27 Jan 2011 16:08:42 -0800 (PST)\r
18 Received: from mail-qy0-f174.google.com (mail-qy0-f174.google.com\r
19         [209.85.216.174]) (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 05688429E21\r
22         for <notmuch@notmuchmail.org>; Thu, 27 Jan 2011 16:08:41 -0800 (PST)\r
23 Received: by qyj19 with SMTP id 19so240796qyj.5\r
24         for <notmuch@notmuchmail.org>; Thu, 27 Jan 2011 16:08:39 -0800 (PST)\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma;\r
26         h=domainkey-signature:mime-version:sender:date:x-google-sender-auth\r
27         :message-id:subject:from:to:cc:content-type;\r
28         bh=c/G24Hb+onVU7V1xjZ/RJndXQfuZ0YKeqngxQYMZPfY=;\r
29         b=YQd3IDskypNGM5NXNXPlxj3/4FSqNQlLfTYYAs4z2et6ECba2jno7SwOJpFSWMafyZ\r
30         CR7aoQTh9QsI9Mwvxawh+ftHYfohtoNdX7/TDmQ2mTV0d5SB3ncDlcJJXqI5GA8h7BrV\r
31         cDummBiJ9aD+F985gGfXvVsJFjNzQS1GGZsxQ=\r
32 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma;\r
33         h=mime-version:sender:date:x-google-sender-auth:message-id:subject\r
34         :from:to:cc:content-type;\r
35         b=vMHnQKZSfIdl10qJpfcH+Qa4XdqY5DJpemaW8zAFc0s7BbtYPPQhuvEBq2GnE4hmF4\r
36         YtbyRFhxuzvp3+ueJJBxxXroCDZwyhoKl24qtxdRc9Mu5DskxsyDjYZ1UXzSaksXpSZU\r
37         F/6VusCVKUhMef4A3DrZX1aWkD6IAiNvs5o04=\r
38 MIME-Version: 1.0\r
39 Received: by 10.229.217.133 with SMTP id hm5mr2107198qcb.40.1296173318728;\r
40         Thu, 27 Jan 2011 16:08:38 -0800 (PST)\r
41 Sender: amdragon@gmail.com\r
42 Received: by 10.229.97.143 with HTTP; Thu, 27 Jan 2011 16:08:38 -0800 (PST)\r
43 Received: by 10.229.97.143 with HTTP; Thu, 27 Jan 2011 16:08:38 -0800 (PST)\r
44 Date: Thu, 27 Jan 2011 19:08:38 -0500\r
45 X-Google-Sender-Auth: oZjmyG_nfc4k5qavYvGdNckV8zM\r
46 Message-ID: <AANLkTin8DdhHU7JRnobxZQGWadD0VH2_HKLx4tPWq4YG@mail.gmail.com>\r
47 Subject: Re: [PATCH 1/3] new: Do not defer maildir flag synchronization during\r
48         the first run\r
49 From: Austin Clements <amdragon@mit.edu>\r
50 To: Carl Worth <cworth@cworth.org>\r
51 Content-Type: multipart/alternative; boundary=0016361e81a23aed99049adcdefd\r
52 Cc: notmuch@notmuchmail.org\r
53 X-BeenThere: notmuch@notmuchmail.org\r
54 X-Mailman-Version: 2.1.13\r
55 Precedence: list\r
56 List-Id: "Use and development of the notmuch mail system."\r
57         <notmuch.notmuchmail.org>\r
58 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
60 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
61 List-Post: <mailto:notmuch@notmuchmail.org>\r
62 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
63 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
64         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
65 X-List-Received-Date: Fri, 28 Jan 2011 00:08:42 -0000\r
66 \r
67 --0016361e81a23aed99049adcdefd\r
68 Content-Type: text/plain; charset=ISO-8859-1\r
69 \r
70 Looks like eagerly synchronizing tags is easy and works fine, though I need\r
71 to beef up the tests and put some transactions around things before I'm\r
72 satisfied.\r
73 \r
74 I added a "notmuch_database_remove_message_get" to the public API that's\r
75 just like "notmuch_database_remove_message" except that it also returns a\r
76 notmuch_message_t if other instances of the message still exist.  It feels\r
77 clunky to have two almost identical variants of this function.  Is this the\r
78 preferred way to change the public API?  Or should I just add the argument\r
79 to the existing function and fix the other three calls to it?\r
80 On Thu, Jan 27, 2011 at 12:43 AM, Austin Clements <amdragon@mit.edu> wrote:\r
81 \r
82 > Sure. I've been wanting to take a crack at notmuch new's atomicity for a\r
83 > while. Though you'll have to get through some of my outstanding patches. I\r
84 > can only keep so many branches in my head. ]:--8)\r
85 >\r
86 \r
87 --0016361e81a23aed99049adcdefd\r
88 Content-Type: text/html; charset=ISO-8859-1\r
89 Content-Transfer-Encoding: quoted-printable\r
90 \r
91 <p>Looks like eagerly synchronizing tags is easy and works fine, though I n=\r
92 eed to beef up the tests and put some transactions around things before I&#=\r
93 39;m satisfied.<br></p>\r
94 <p>I added a &quot;notmuch_database_remove_message_get&quot; to the public =\r
95 API that&#39;s just like &quot;notmuch_database_remove_message&quot; except=\r
96  that it also returns a notmuch_message_t if other instances of the message=\r
97  still exist. =A0It feels clunky to have two almost identical variants of t=\r
98 his function. =A0Is this the preferred way to change the public API? =A0Or =\r
99 should I just add the argument to the existing function and fix the other t=\r
100 hree calls to it?<br>\r
101 </p>\r
102 <div class=3D"gmail_quote">On Thu, Jan 27, 2011 at 12:43 AM, Austin Clement=\r
103 s <span dir=3D"ltr">&lt;<a href=3D"mailto:amdragon@mit.edu" target=3D"_blan=\r
104 k">amdragon@mit.edu</a>&gt;</span> wrote:<br><blockquote class=3D"gmail_quo=\r
105 te" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"=\r
106 >\r
107 \r
108 Sure. I&#39;ve been wanting to take a crack at notmuch new&#39;s atomicity =\r
109 for a while. Though you&#39;ll have to get through some of my outstanding p=\r
110 atches. I can only keep so many branches in my head. ]:--8)<br></blockquote=\r
111 >\r
112 \r
113 </div>\r
114 \r
115 --0016361e81a23aed99049adcdefd--\r