From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sNNjO+yzG2SsCQAASxT56A (envelope-from ) for ; Thu, 23 Mar 2023 03:05:33 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id 8BkfO+yzG2TaygAAauVa8A (envelope-from ) for ; Thu, 23 Mar 2023 03:05:32 +0100 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5E98A95A6 for ; Thu, 23 Mar 2023 03:05:32 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id AEB745F7E7; Thu, 23 Mar 2023 02:05:29 +0000 (UTC) Received: from mail-oa1-x2b.google.com (mail-oa1-x2b.google.com [IPv6:2001:4860:4864:20::2b]) by mail.notmuchmail.org (Postfix) with ESMTPS id 9A6AD5F42B for ; Thu, 23 Mar 2023 02:05:26 +0000 (UTC) Received: by mail-oa1-x2b.google.com with SMTP id 586e51a60fabf-17997ccf711so21382604fac.0 for ; Wed, 22 Mar 2023 19:05:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679537125; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xQRT2lVGNWLjS3d9PVqm/aUXd67L5SwloYwZi1KiCQ4=; b=jHoVtJgNIo2Jdq5EN2m477HI/ajWSs3UriRsUKzQQgMReXc3EasljvFo+JZuUjFy39 Yxs/veFB9Lceo3v6yxteRt5nIKhpHqTBwqa/aX6CfQoSMkfsfjktuOIlwTaQTCUvMxkG Fm06ZBVlusgJ/wN2rBEUC1Fu2A1PJ5Oi7pDef7pWJ5eZ18tdSYsW+XK0kQvq8XdXjBKu CsLb2E70bZkR4yHvzfG0me795+yBjHgWHb9gU+0kUpxZkVg640zPaCDClxVdgcG4+dE4 8Avpr77A2RtEDeq02P/4JWg5eWsFedI8IH5ycZFQwave1S0akUlKSQfJ3WDkb76o5tiK eUtw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679537125; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xQRT2lVGNWLjS3d9PVqm/aUXd67L5SwloYwZi1KiCQ4=; b=iW+pwh/4J9AA430RNWBGrgab1n72PuGVCoEb3ksKLLiGWEzLrJns3qHwQBGFFIVb9a QsH0rxrQdeN85TA7bk12s2dJdHWJ8pzKlmOTPDIV5ZW9ljzdABXzXcUYS062Y5ASvLoU ch/DiAABCEvYdE0fJ71ZPNJRDT+s30mpP9x1Po/GfUoVnlewNWWYrStWphAA6nj9zthr Gc0dLcUTeIV90STsTF349cVTWEzNgVm05FroDzaQ6gLhGMPnxdv5/f2cyMqKFDPUUC8S FLePpJVcczRxATiPSvy2z9LNU3rvo6XLWMJJingt93iXxQehHlM+IotUrGTFLlgucZ8G 3QmA== X-Gm-Message-State: AO0yUKW02NZ+fMqm5tMrur1lvA9MXyAAZuw/Qx456nUdmZYwjItAioEI lm6hEcmvUySWhp/sE+eRMIkka2CAfBc= X-Google-Smtp-Source: AK7set+y//UC7VNPV27zwVcjmXy/vP7QFrdHLlmGuioEmZy+jeL+fXVfFCANdcs+KKnHJBBsoEKCRA== X-Received: by 2002:a05:6870:4581:b0:177:9040:d243 with SMTP id y1-20020a056870458100b001779040d243mr1256874oao.37.1679537125086; Wed, 22 Mar 2023 19:05:25 -0700 (PDT) Received: from localhost ([2806:2f0:4060:fff1:4ae7:daff:fe31:3285]) by smtp.gmail.com with ESMTPSA id q5-20020a056830018500b0069436b64bb1sm6980213ota.79.2023.03.22.19.05.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 22 Mar 2023 19:05:24 -0700 (PDT) From: Felipe Contreras To: notmuch@notmuchmail.org Subject: [PATCH 0/2] ruby: database open improvements Date: Wed, 22 Mar 2023 20:05:21 -0600 Message-Id: <20230323020523.135299-1-felipe.contreras@gmail.com> X-Mailer: git-send-email 2.39.2.13.g1fb56cf030 MIME-Version: 1.0 Message-ID-Hash: HAMMKYOCSXSSC4SKFCHK3VTEHYFS6JZC X-Message-ID-Hash: HAMMKYOCSXSSC4SKFCHK3VTEHYFS6JZC X-MailFrom: felipe.contreras@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Country: DE X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1679537132; a=rsa-sha256; cv=none; b=RFq9FORCIx6OaiOel9nrENs9WpICIMYq79lKVWcamEmryeIVcCX4FDy9jLYb6M7I9wTYDy 5JnLWveriV7RBtQkuCB+Vayt8SOPTAvlJjJ5Tl2QLo2I+xyvoY+hAMOeC+wWHl4JNM4FPp j4ndAj2xY6oWSz6KjaE++0HRLWhPxZjh/UIjJhNZ11eZwKwwV2DygulfgJ3RzsW334QiyP 8d90WQyTMHOItZFE+OhHX/ryoH1qZxMCyuRK+z2077O0ayP+hCLpfVTsdQgC2uczT4Cagv 0VTta8t0hc0eAM9cvih/O0ojxleRCbf+aKSob6HIUwyjr80p18Bv+X7sWm6/sA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=jHoVtJgN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1679537132; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ph7SGeC7U7tbLdjpthDTi1HovpUX3L46uz+M5OoNCSA=; b=tem161FSjeChrNwCnETLMyUqipkdLn3Fnlt5LZi+aTiUHv4E3cb/HjV6duA7ZfHtngo4Jq vsJCZ+EdFjAqCWAENX1QRDdgAwQRE/prO/75sIqY0OCaWaKf558q6SZVFuMtvEw2lsumoj kbSHtsfZhDVRnwkulaH7b64oqiB4KI2JFB2MpYUIUlGjwc5Oat+HhypKpzcsJ/o6js58p1 fApPl1osFJFRwT5tLurauC0uBcExhWMHqeCiLXQpWyTzv0Uqv+cY0tvAXnuqXG/q9EunSV /VXrI9y3G+BMKYaJjl4gagy/ysL0f8BLRKPgVGd92NY8kKe9YYTbrmEtogLfRg== Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=jHoVtJgN; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Scanner: scn1.migadu.com X-Migadu-Spam-Score: -0.55 X-Spam-Score: -0.55 X-Migadu-Queue-Id: 5E98A95A6 X-TUID: iTNesQ0zK4kb Essentially we want to do notmuch_database_open_with_config() and load the default database. Felipe Contreras (2): ruby: use database_open_with_config ruby: database: make path arg optional bindings/ruby/database.c | 12 ++++++++---- test/T395-ruby.sh | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) -- 2.39.2.13.g1fb56cf030