expose notmuch_database_new to libraries?
authorWael M. Nasreddine <wael.nasreddine@gmail.com>
Sat, 26 Sep 2015 02:43:03 +0000 (19:43 +1700)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:38 +0000 (14:49 -0700)
5f/c06c4c4338fb2f207ab09bd27459b5c5ec0940 [new file with mode: 0644]

diff --git a/5f/c06c4c4338fb2f207ab09bd27459b5c5ec0940 b/5f/c06c4c4338fb2f207ab09bd27459b5c5ec0940
new file mode 100644 (file)
index 0000000..b9607ca
--- /dev/null
@@ -0,0 +1,75 @@
+Return-Path: <wael.nasreddine@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 9635F6DE0924\r
+ for <notmuch@notmuchmail.org>; Fri, 25 Sep 2015 19:43:26 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.651\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.651 tagged_above=-999 required=5 tests=[AWL=1.452, \r
+ DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001,\r
+ SPF_PASS=-0.001] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id JXbAJvPssB_S for <notmuch@notmuchmail.org>;\r
+ Fri, 25 Sep 2015 19:43:24 -0700 (PDT)\r
+Received: from mail-io0-f174.google.com (mail-io0-f174.google.com\r
+ [209.85.223.174])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id DDC286DE02D2\r
+ for <notmuch@notmuchmail.org>; Fri, 25 Sep 2015 19:43:23 -0700 (PDT)\r
+Received: by iofh134 with SMTP id h134so128724486iof.0\r
+ for <notmuch@notmuchmail.org>; Fri, 25 Sep 2015 19:43:23 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=mime-version:from:date:message-id:subject:to:content-type;\r
+ bh=JN+f+SdcS9+ZbYOQ8OyS7v4w2YDOr/k6JMPuAQoyq3E=;\r
+ b=flRg8q+fgYhSSyW4w+SoBUcgesHcOk8vwMyYgKIUT2ZL3dxxWCu8us3Fn/KnOSjlFU\r
+ e1f5ctqoz9Vl93SzUiEO+w89xf0Mbh2uXVdsu00q7j4XAlKau51eJtOaKXIGNtCt7qrP\r
+ 2iD5RLCP6hqC9oB/eU1qQTutaeEyYRdQhYeqaGyjZOfTceo9E+YLYxFNR5Zd1Fodrxf+\r
+ YFMQW8aHEpg9fMsV57kklUqpsbkxdglPcRY6h3CXemrFENMNozT4fc5FeVLdoXv9Cd/K\r
+ PzBhQ71L5ek+Z5HPwf++SoJ1aLnFKY1GNK18gfiYHwaxDWwry4a5gdxeQQkkieVEKKWB\r
+ uthQ==\r
+X-Received: by 10.107.31.135 with SMTP id f129mr11490018iof.8.1443235402993;\r
+ Fri, 25 Sep 2015 19:43:22 -0700 (PDT)\r
+MIME-Version: 1.0\r
+Received: by 10.36.111.136 with HTTP; Fri, 25 Sep 2015 19:43:03 -0700 (PDT)\r
+From: "Wael M. Nasreddine" <wael.nasreddine@gmail.com>\r
+Date: Fri, 25 Sep 2015 19:43:03 -0700\r
+Message-ID:\r
+ <CA+kKtKDBrfPPkM+HnNJLXMHGc4Ppr=8YeJkOPuZaFewUkBqh9w@mail.gmail.com>\r
+Subject: expose notmuch_database_new to libraries?\r
+To: notmuch <notmuch@notmuchmail.org>\r
+Content-Type: text/plain; charset=UTF-8\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.18\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: Sat, 26 Sep 2015 02:43:26 -0000\r
+\r
+Hello,\r
+\r
+I have a use case where I'd like to call 'notmuch new'\r
+programmatically via the bindings (custom Go bindings). Is it at all\r
+possible to expose notmuch_new_command[0] through lib/notmuch.h? The\r
+logic of notmuch_new_command would probably have to extracted to\r
+lib/database.cc for the exposure.\r
+\r
+Thanks,\r
+\r
+Wael\r
+\r
+\r
+[0]: https://github.com/notmuch/notmuch/blob/master/notmuch-new.c#L933\r
+\r
+-- \r
+Wael Nasreddine | Senior Full Stack Engineer at Dailymotion | (650) 933-3448\r