1 Return-Path: <wael.nasreddine@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 arlo.cworth.org (Postfix) with ESMTP id 9635F6DE0924
\r
6 for <notmuch@notmuchmail.org>; Fri, 25 Sep 2015 19:43:26 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org
\r
11 X-Spam-Status: No, score=0.651 tagged_above=-999 required=5 tests=[AWL=1.452,
\r
12 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, RCVD_IN_MSPIKE_H2=-0.001,
\r
14 SPF_PASS=-0.001] autolearn=disabled
\r
15 Received: from arlo.cworth.org ([127.0.0.1])
\r
16 by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)
\r
17 with ESMTP id JXbAJvPssB_S for <notmuch@notmuchmail.org>;
\r
18 Fri, 25 Sep 2015 19:43:24 -0700 (PDT)
\r
19 Received: from mail-io0-f174.google.com (mail-io0-f174.google.com
\r
21 by arlo.cworth.org (Postfix) with ESMTPS id DDC286DE02D2
\r
22 for <notmuch@notmuchmail.org>; Fri, 25 Sep 2015 19:43:23 -0700 (PDT)
\r
23 Received: by iofh134 with SMTP id h134so128724486iof.0
\r
24 for <notmuch@notmuchmail.org>; Fri, 25 Sep 2015 19:43:23 -0700 (PDT)
\r
25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
\r
26 h=mime-version:from:date:message-id:subject:to:content-type;
\r
27 bh=JN+f+SdcS9+ZbYOQ8OyS7v4w2YDOr/k6JMPuAQoyq3E=;
\r
28 b=flRg8q+fgYhSSyW4w+SoBUcgesHcOk8vwMyYgKIUT2ZL3dxxWCu8us3Fn/KnOSjlFU
\r
29 e1f5ctqoz9Vl93SzUiEO+w89xf0Mbh2uXVdsu00q7j4XAlKau51eJtOaKXIGNtCt7qrP
\r
30 2iD5RLCP6hqC9oB/eU1qQTutaeEyYRdQhYeqaGyjZOfTceo9E+YLYxFNR5Zd1Fodrxf+
\r
31 YFMQW8aHEpg9fMsV57kklUqpsbkxdglPcRY6h3CXemrFENMNozT4fc5FeVLdoXv9Cd/K
\r
32 PzBhQ71L5ek+Z5HPwf++SoJ1aLnFKY1GNK18gfiYHwaxDWwry4a5gdxeQQkkieVEKKWB
\r
34 X-Received: by 10.107.31.135 with SMTP id f129mr11490018iof.8.1443235402993;
\r
35 Fri, 25 Sep 2015 19:43:22 -0700 (PDT)
\r
37 Received: by 10.36.111.136 with HTTP; Fri, 25 Sep 2015 19:43:03 -0700 (PDT)
\r
38 From: "Wael M. Nasreddine" <wael.nasreddine@gmail.com>
\r
39 Date: Fri, 25 Sep 2015 19:43:03 -0700
\r
41 <CA+kKtKDBrfPPkM+HnNJLXMHGc4Ppr=8YeJkOPuZaFewUkBqh9w@mail.gmail.com>
\r
42 Subject: expose notmuch_database_new to libraries?
\r
43 To: notmuch <notmuch@notmuchmail.org>
\r
44 Content-Type: text/plain; charset=UTF-8
\r
45 X-BeenThere: notmuch@notmuchmail.org
\r
46 X-Mailman-Version: 2.1.18
\r
48 List-Id: "Use and development of the notmuch mail system."
\r
49 <notmuch.notmuchmail.org>
\r
50 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
52 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>
\r
53 List-Post: <mailto:notmuch@notmuchmail.org>
\r
54 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
55 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
56 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
57 X-List-Received-Date: Sat, 26 Sep 2015 02:43:26 -0000
\r
61 I have a use case where I'd like to call 'notmuch new'
\r
62 programmatically via the bindings (custom Go bindings). Is it at all
\r
63 possible to expose notmuch_new_command[0] through lib/notmuch.h? The
\r
64 logic of notmuch_new_command would probably have to extracted to
\r
65 lib/database.cc for the exposure.
\r
72 [0]: https://github.com/notmuch/notmuch/blob/master/notmuch-new.c#L933
\r
75 Wael Nasreddine | Senior Full Stack Engineer at Dailymotion | (650) 933-3448
\r