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 ms0.migadu.com with LMTPS id ILVoEjRx0GEIWQEAgWs5BA (envelope-from ) for ; Sat, 01 Jan 2022 16:20:20 +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 SK2cDjRx0GGFoQAAauVa8A (envelope-from ) for ; Sat, 01 Jan 2022 16:20:20 +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 0ED5A3212E for ; Sat, 1 Jan 2022 16:20:20 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 731605F710; Sat, 1 Jan 2022 15:20:16 +0000 (UTC) Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by mail.notmuchmail.org (Postfix) with ESMTPS id 13CEE5F5EE for ; Sat, 1 Jan 2022 15:20:13 +0000 (UTC) Received: by mail-wr1-x435.google.com with SMTP id e5so60992361wrc.5 for ; Sat, 01 Jan 2022 07:20:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version; bh=gTKmdgrbDpeGgEm52X/LXyco6ANctg0+lIu5l2YqbWc=; b=b0N6vlYpxWZ+Evem7N3ga2YdAHs6zSk8hhGBZTE11Zcy6wS8vXCrT281Li23r5EoG5 qWTzE7BfFQxSrU9PRC0oOaNYf7+GfUt8GkRWHH/qUn7PWhPX0sZsl0Pp6ejhoSOUEGVK 9A8AZzni8gzCv4j2rN4CZWoBRfYsfG3obUl7LT0E9cgtDzNgsZWjI1IAC6ScYm9r546P Dm0Gr/UWlmii1ilC00dXr2rhlp7zabYyjp+4t/Dtc941ZuUz0Kd0x9UARc4lr8YmEUzP jL2Smaw/0uSiTnFi8R0qDZ+KKHe6lJUPIPiBwcbCFBvm9QuNarDW+WPj5UA8SiWs+Yt+ JdoQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:subject:in-reply-to:references :date:message-id:mime-version; bh=gTKmdgrbDpeGgEm52X/LXyco6ANctg0+lIu5l2YqbWc=; b=2OE/dG5ZtE+X0jqEvGvXZbDjy+GZevNZSYq093JO/QShO7Wgzd8+WYqqYVZRw54PRd lfZbJcry+JGTDDbvIHWYF/gq3ljpaMCBcA7i5So0MpBlHPxfxOBbtEfv1GOXehxjUL7p kv3ShsPerR+Z9FhuPZs8iP2Gm8D5ftw23uMTr5z1Ll0biVBY1RpwmXzilWoHupxSuEV1 rQ1Y0cZpx+aU79JIgcv5ymY/XkvbC1TECKeklqc28q4Fbw0qqcr9K2w438C00sBRY1Ui jcUfy/ckjrAejXdvvCvMqoHgj7ZXA+at7v2zPwOI8Sxji2S8d2c3CyShBC3h46JxfDrX 4CeA== X-Gm-Message-State: AOAM530QDK3US0lZFAICeXtx10kBlN8OdKOazVEyqELykI9f01fZhhwX K5nu/B0kl9bzwDD08HaxPhbOndltw3I= X-Google-Smtp-Source: ABdhPJwtww4YJeLU2DDk/15bSrf6JzPkspSCWofawhd0TERykL5UTj1nW236H7fqE/rCILCX92plcg== X-Received: by 2002:adf:eb4c:: with SMTP id u12mr32240322wrn.707.1641050412392; Sat, 01 Jan 2022 07:20:12 -0800 (PST) Received: from powell.devork.be (62-178-226-148.cable.dynamic.surfer.at. [62.178.226.148]) by smtp.gmail.com with ESMTPSA id w6sm29768355wrs.52.2022.01.01.07.20.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 01 Jan 2022 07:20:11 -0800 (PST) Sender: Floris Bruynooghe Received: (nullmailer pid 11868 invoked by uid 1000); Sat, 01 Jan 2022 15:20:11 -0000 From: Floris Bruynooghe To: David Bremner , Lele Gaifax , notmuch@notmuchmail.org Subject: Re: Python notmuch2 bridge, something changed in the Database constructor In-Reply-To: <87lf0anoiv.fsf@tethera.net> References: <87fsqijx7u.fsf@metapensiero.it> <87lf0anoiv.fsf@tethera.net> Date: Sat, 01 Jan 2022 16:20:11 +0100 Message-ID: <87bl0vlbys.fsf@powell.devork.be> MIME-Version: 1.0 Message-ID-Hash: VLWYN66HAP7FCUKMKUFYFRHUFRMD3KB4 X-Message-ID-Hash: VLWYN66HAP7FCUKMKUFYFRHUFRMD3KB4 X-MailFrom: floris.bruynooghe@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-Flow: FLOW_IN X-Migadu-Country: DE ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1641050420; h=from:from:sender:sender: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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ki3PGJ36U/kiPS1NYBBGgm/8a1b1/tyIPxKbUUgJ+8I=; b=tJW2FBgckoy0lWUFtzT9zkH0wbg9g558XOWfMxDWpOcprsLPTQw4WATnX7pSs893Bkm02j /UHJtsGA8XUkpbhe5CULMSOqSKRgnAlZtRgZlpYf+Rm6JYYTQO9SZ/Ft9ifxb9JgMh4Eut z7+2+kwgEj0ZI/tShdesLlDdcERKq6F5i8+udVyYhw29eT5VlBOEviHAVTGZ+bm7hdY7D6 tuF8jJdAuU4jUqHeMwNceaoC8kQlPfpPP/nRVp0LC0LWLaDS4xwN0JvyyIz/jNvQoyn1yO 1z+ZlXInx+r7d2ZqUwi7DWILGH6lbOxGsvuFfn5uxx1v8msxyfsJ6gTrDV/Ocw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1641050420; a=rsa-sha256; cv=none; b=XBLqztZjXVF+pItcdr/WM9UXqh5YkKt88oz6x9hWCo9yp4epYQrp6vXhim5x3+wZvfiL1q d3Y91OnbfpIZDaBW2sHmjgE/8oXCQHqyXaQTyvFbRDJxqCyDuM+eOuXJGpks6t9sQqwMI6 gD2aJKVByWYYA5knBmX7/NcxUZd6eKjdqTLgWoIoqPHMwK0d5kv6y7UU5p9DyCj63OH30h UwP6Zv8BYJiu9Dt3LKC0OOwBazRkw8blJ1bj9qdHMWii7+i1B294ZU/0ThMjIy2wvDU25Z cl5kdI3YIlg8oimsGC0fpeL9LxnrlRNfnmB4f7BxaDGyP12nhwr9SRMPpZp0OQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=b0N6vlYp; dmarc=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-Spam-Score: -1.21 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20210112 header.b=b0N6vlYp; dmarc=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-Queue-Id: 0ED5A3212E X-Spam-Score: -1.21 X-Migadu-Scanner: scn1.migadu.com X-TUID: bDMGy9Oi3gVH On Fri 24 Dec 2021 at 09:03 -0400, David Bremner wrote: > > @Floris: when I made the change to the Database constructor, I chose the > default as CONFIG.NONE because this matched the previous semantics > _except_ for finding the database path. But since I don't want to use > the ad hoc default_path method anymore, maybe a better default would be > CONFIG.SEARCH. I guess most users of the python bindings will be OK with > the the configuration values in .notmuch-config being loaded by default. > What do you think? Originally my intention with opening the database was that doing the same as notmuch itself does by default would be the default and most natural thing to do (whether or not I succeeded at the time I have no idea). So reading .notmuch-config by default and using it correctly seems fine to me. Backwards compatibility is always tricky I guess, but following notmuch's behaviour itself seems reasonable to me. As a random data point I just checked my own use and I seem to be passing the database path explicitly. Cheers, Floris