From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id KL32LWuTNGcC3AAA62LTzQ:P1 (envelope-from ) for ; Wed, 13 Nov 2024 11:54:19 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id KL32LWuTNGcC3AAA62LTzQ (envelope-from ) for ; Wed, 13 Nov 2024 12:54:19 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=tethera.net header.s=2024 header.b=KWEBu9Om; 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; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1731498859; 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: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=Omn8dqDjSMLKw3MJrbgjRPCyJnHF4gwcPsQQcnhQask=; b=dbJJj+SIdbExU6Mu5dUFBxdtQA9SJ/GGw7LkhowDVPc8ioDD0XS4QFTpPlXh/+T6EnY1xU V9TQq/WJCbhXpTHkLH1gdHtAkTfr1jVgj/uJSIlyOpNQhjsRoq7FmgbLdg5rdkVoiEOLpN 7d6hkKad2Zzp7MGhb04p9B49ZYB15ijmKgxY5Xd+GrHaVxcQHGIWLo3CKPxcWuECWvI+iB ryoQBbfjwE5DVlKs5ABjr2rQ2AiKHtFruYjdN+0pIfthGI3Vp6QmtawrnduuoVz/7E2LJb MGsKvYT/0HrdTp1+lGYtW3rz2eLQjmwPRn5WRcjz/DgvZb3nn42glE9g0vSArA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=tethera.net header.s=2024 header.b=KWEBu9Om; 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; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1731498859; a=rsa-sha256; cv=none; b=ZQCBzI2yugpX13mTgvNTAL9Ak86a45WtLgSBPc4qzu0CaF+vc98ymmQPhza8VrLR9ff2gr 5m2qfMErOHZb+iYDpJWQtQmKMk8EQ1w/EFnG6BdiswewwA4CgBJJqs2AvXwwP/RHvJ/QoR +/fko0jFQkJM3rvUot5bxoabzUZB9CYqnzhli5pXvNu03wpvkKBwzCtsgjMHYeED0lFddf XJUFvnFYf3AIL3sql4ORlK3mplMhO/oVIXh0WuHiP3sYhafHBs5w55ZSR/yq5xySDYmiC1 SRYZh5ztwkYopsZxps1/0i5Vu/99CTt/baaSFlTSxM9uy0V5LLRP0UeZz93XUg== 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 5834D8D20E for ; Wed, 13 Nov 2024 12:54:18 +0100 (CET) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id E230B5F5DF; Wed, 13 Nov 2024 11:46:48 +0000 (UTC) Received: from phubs.tethera.net (phubs.tethera.net [IPv6:2607:5300:60:3a9d::1]) by mail.notmuchmail.org (Postfix) with ESMTPS id ADC025F3E8 for ; Wed, 13 Nov 2024 11:46:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tethera.net; i=@tethera.net; q=dns/txt; s=2024; t=1731498403; h=from : to : subject : in-reply-to : references : date : message-id : mime-version : content-type : from; bh=tv02YslJ+ZMxF/QqFKyIcE/HZboU4TZvJScjKQjky3k=; b=KWEBu9Omg9hO/c1yp8Wrn2XV75zh0DaYrUARnBnI2jXAN9SOQPTBMeT2DzV2HDS4jDEwG Xd34KNqXw3NBazFPnqFyraBSlcEbDv2q+gqznrnUnlYjoVLi4B24PE1DNHzMjhYv3dArSSs 7IYHqeU+kLSLSf1KuWpA5y+tnnpOWHfMk42R/igFvzyLJKN/NTQKgd2mghen8bNXMQ3D/lp GR5pFQu50huTwcbdI74r1nK7vxMdK+fCUwcK7uWqzMW53VOzc/ThavQJTjqsIoZUoOiFC3F VUbw1yDKEjLzxMIxWiBe8mUeICH/nH8wVK78FHM1aBWS7G7Jc6jqX90/EaGA== Received: from tethera.net (unknown [181.193.54.86]) by phubs.tethera.net (Postfix) with ESMTPS id ED0F818006E; Wed, 13 Nov 2024 07:46:42 -0400 (AST) Received: (nullmailer pid 1925533 invoked by uid 1000); Wed, 13 Nov 2024 11:46:40 -0000 From: David Bremner To: Martin Monperrus , notmuch@notmuchmail.org Subject: Re: bug report: query field in JSON output is not semantic In-Reply-To: References: Date: Wed, 13 Nov 2024 05:46:40 -0600 Message-ID: <87ttcbz78f.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: TJKFB5I6ZJ3SXE3TZ57LH62R22QAJJNV X-Message-ID-Hash: TJKFB5I6ZJ3SXE3TZ57LH62R22QAJJNV X-MailFrom: david@tethera.net 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 X-Migadu-Scanner: mx11.migadu.com X-Migadu-Spam-Score: 4.26 X-Spam-Score: 4.26 X-Migadu-Queue-Id: 5834D8D20E X-TUID: uQLnAdESWsw3 Martin Monperrus writes: > Hi Notmuch team, > Hi Martin. > > ###Expected behavior: > "query" field contains a semantic list of ids that can be manipulated in pure JSON > This might indeed have been a reasonable design, but it's not what is documented in devel/schemata. So it depends which expectations I guess. > ### Actual behavior: > "query" field contains a string that has to be > parsed, split by space Currently we do not fix the query in question to be a list of id's, so I guess it would conform to the current spec to outpu t some other kind of query that needed to be parsed. I don't forsee doing that, though, so perhaps in the long term we can make this change. It would require potentially adjusting the emacs front end and any other client relying on the JSON format, so it's not a completely trivial change. Thanks for your suggestion, David