[PATCH 0/2] lib: introduce notmuch_database_new
authorJani Nikula <jani@nikula.org>
Sun, 1 Dec 2013 13:13:58 +0000 (15:13 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:58:34 +0000 (09:58 -0800)
48/5c08018de76495de3be5fd59c1cf00903dde0e [new file with mode: 0644]

diff --git a/48/5c08018de76495de3be5fd59c1cf00903dde0e b/48/5c08018de76495de3be5fd59c1cf00903dde0e
new file mode 100644 (file)
index 0000000..8d3b6a7
--- /dev/null
@@ -0,0 +1,99 @@
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 72AAF431E62\r
+       for <notmuch@notmuchmail.org>; Sun,  1 Dec 2013 05:14:16 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id GdGp6JmbtDSu for <notmuch@notmuchmail.org>;\r
+       Sun,  1 Dec 2013 05:14:08 -0800 (PST)\r
+Received: from mail-ea0-f170.google.com (mail-ea0-f170.google.com\r
+       [209.85.215.170]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id B096B431FD0\r
+       for <notmuch@notmuchmail.org>; Sun,  1 Dec 2013 05:14:08 -0800 (PST)\r
+Received: by mail-ea0-f170.google.com with SMTP id k10so8157965eaj.15\r
+       for <notmuch@notmuchmail.org>; Sun, 01 Dec 2013 05:14:07 -0800 (PST)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:from:to:cc:subject:date:message-id;\r
+       bh=Mugaf95IP51fnxa2jufRz/2yMNteMXN5zMSDwArAq3U=;\r
+       b=c+qR5Hw45h6hHBbt5zTCFb6IP5k7QoaaciWJjzqUJ71AbbBGwcskR89u+ZjI7KDzJt\r
+       aKydPiqorPPv/ORqOXRNfaqfjkv3KTXnT9+5aKrxVtNxZU/2ABv+klcjSYc4SdyBu6Ao\r
+       6FdFysxWRt4FiCpQKkVStEuX3mU5Kg4vacOZIFHzFxU/NAUV9cNwXcKj26pze7Aa4wBH\r
+       sYLkOvZzICQOWy1U/TWt4dhsQK7XFk7VmXdIFtuC8AvS4CVN1TeHTlCLr4kc9uPnn5zO\r
+       83D9w4xz51iS5CGCpEbDUKUTVqWE0mHs4aZnON2xSEQoTjgAOknioXHlZaVO4RwwxDUe\r
+       Aq0Q==\r
+X-Gm-Message-State:\r
+ ALoCoQlXvwoonEaSJ04Ki9JsQF13ctlgxebYiFfU7St1939n8gS1awySLLYiIyGT2w48g33YPAdI\r
+X-Received: by 10.14.95.130 with SMTP id p2mr75178eef.47.1385903646022;\r
+       Sun, 01 Dec 2013 05:14:06 -0800 (PST)\r
+Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
+       [88.195.111.91])\r
+       by mx.google.com with ESMTPSA id h3sm35532015eem.15.2013.12.01.05.14.03\r
+       for <multiple recipients>\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Sun, 01 Dec 2013 05:14:05 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 0/2] lib: introduce notmuch_database_new\r
+Date: Sun,  1 Dec 2013 15:13:58 +0200\r
+Message-Id: <cover.1385903109.git.jani@nikula.org>\r
+X-Mailer: git-send-email 1.8.4.2\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 01 Dec 2013 13:14:16 -0000\r
+\r
+Hi all -\r
+\r
+In preparation of adding some logging hooks into the library (instead of\r
+printing everything to stdout/stderr) we need a way to set that kind of\r
+options before opening/creating the database. Here's a proposed API\r
+change to make that possible in the future.\r
+\r
+N.B. This breaks bindings and contrib/notmuch-deliver.\r
+\r
+BR,\r
+Jani.\r
+\r
+\r
+Jani Nikula (2):\r
+  lib: add return status to database close and destroy\r
+  lib: introduce notmuch_database_new for initializing a database handle\r
+\r
+ lib/database.cc      | 80 ++++++++++++++++++++++++++++++----------------------\r
+ lib/notmuch.h        | 69 ++++++++++++++++++++++++++++++++++----------\r
+ notmuch-compact.c    | 11 +++++++-\r
+ notmuch-count.c      | 10 +++++--\r
+ notmuch-dump.c       | 10 +++++--\r
+ notmuch-insert.c     | 10 +++++--\r
+ notmuch-new.c        | 14 +++++----\r
+ notmuch-reply.c      | 10 +++++--\r
+ notmuch-restore.c    | 10 +++++--\r
+ notmuch-search.c     | 10 +++++--\r
+ notmuch-show.c       | 10 +++++--\r
+ notmuch-tag.c        | 10 +++++--\r
+ test/random-corpus.c | 10 +++++--\r
+ test/symbol-test.cc  |  3 +-\r
+ 14 files changed, 193 insertions(+), 74 deletions(-)\r
+\r
+-- \r
+1.8.4.2\r
+\r