From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 46A5F6DE0350 for ; Wed, 13 Dec 2017 05:23:51 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.12 X-Spam-Level: X-Spam-Status: No, score=-0.12 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id u8WCmWB6HjKk for ; Wed, 13 Dec 2017 05:23:49 -0800 (PST) Received: from mail-wm0-f46.google.com (mail-wm0-f46.google.com [74.125.82.46]) by arlo.cworth.org (Postfix) with ESMTPS id BA23D6DE0164 for ; Wed, 13 Dec 2017 05:23:48 -0800 (PST) Received: by mail-wm0-f46.google.com with SMTP id g75so5045284wme.0 for ; Wed, 13 Dec 2017 05:23:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:mime-version; bh=MoasNhNPp/GjJmVmdog96HqLKjy+iless3GskRufvBI=; b=g4tlQHrxhJhhibvPbiYW3P4W8M1owGhvrWfQ4izDJHdoVfcjCCsMngyAhaJ32mfdy7 RU6azY6j1z8pGsQiEwAQ4eMTu1FTiXfBdlUZlnkBMQRMllfGXiB0pnFHIJzowJFGo9vI H4t/o+2wvIv0cxnhGEILa8du8BcJX1+yeG7JrwCbiu10EonnDVGVy3C6/Xcdt/BLf7pG nodC7MNmtmH68cvQjVNJWcidHWEcC8CpohqSr68A1Rue2Upbhprd7nkjBgP21BO5+M8y BoTDMATVRW2QayJ0/ZqqLQOZOB70Tk10F+OdhdmUAAyYOKuRpTEQ6zEucBsfu9ACAISi BxIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:mime-version; bh=MoasNhNPp/GjJmVmdog96HqLKjy+iless3GskRufvBI=; b=bsc/PiR2y0fNJ4QFlsH2pOBCm8B/byunF48gaUfAZTfaxOc99zRuyhw3q22QJLxIne RU+CnxHT4PrfualQSlOYnkLNRMH34ZJ3V7zaUg08dEhKvZE6A0GDnIv/nqFtBZZZzsna kaAPQGicUtXGBwnji38wBQ4xnrf0BFOCfsGQJkqdfkX0DA8BnjDWNWiAHwWtHiw0OIbH EoH0/WE/Fy+2tBV99WmwQMQ+57ATPYtK5dsfqUeWZms9080zbPsBAcIYfvNHMc+9uIfA Sgn9orC29wtBhJKQKo0kH9UkbFu8o5JfxMQD2Bxq8GEMaxIUJ+zU2QDlsn4pEiExKXzb 3Pkw== X-Gm-Message-State: AKGB3mIgl4gT4onxrhXHCa4aMpvnJVms1qcfAbEkCp5o03esjmL9iulL avLRY87kUP5M7GkhOYdR8ESgq0UG X-Google-Smtp-Source: ACJfBouCTkrubNmaTqiuh1u1z7yjbzhmbL5Rgt1G6Ta0obBYEuQBWo5sRjepww6PsmNMeS1XsOE8YQ== X-Received: by 10.28.142.75 with SMTP id q72mr1931505wmd.45.1513171426509; Wed, 13 Dec 2017 05:23:46 -0800 (PST) Received: from localhost (isis50190.nd.rl.ac.uk. [130.246.50.190]) by smtp.gmail.com with ESMTPSA id o88sm4011287wrc.10.2017.12.13.05.23.44 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 13 Dec 2017 05:23:44 -0800 (PST) From: Adam Washington To: notmuch@notmuchmail.org Subject: Possible bug with named queries Date: Wed, 13 Dec 2017 13:23:42 +0000 Message-ID: <871sjyiwwx.fsf@stfc.ac.uk> MIME-Version: 1.0 Content-Type: text/plain X-Mailman-Approved-At: Wed, 13 Dec 2017 08:30:45 -0800 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Dec 2017 13:23:51 -0000 I've either stumbled across a bug in the handling of named queries or (more likely) a bug in their documentation. I've tried creating some named queries by adding the following three lines to my .notmuch-config file. [query] sasview=from:sasview.org or (from:github subject:sasview) or (from:github subject:sasmodels) mantid=from:mantidproject.org If I run `notmuch config list`, the following lines are amongst the output crypto.gpg_path=gpg query.sasview=from:sasview.org or (from:github subject:sasview) or (from:github subject:sasmodels) query.mantid=from:mantidproject.org built_with.compact=true However, the queries do not seem to work. $ notmuch count from:mantidproject.org 7 $ notmuch count query:mantid 0 Also, while the output from `notmuch config list` showed both queries, trying to view them gives no result. $ notmuch config get mantid $ I'm guessing that the queries aren't configured properly, but I can't seem to find any documentation that indicates that I'm doing something wrong. The man page for notmuch-config states that the explanation for named queries is in notmuch-search-terms, which, in turn, points back to notmuch-config. Is this a bug or have I declared my queries incorrectly?