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 A036D6DE0228 for ; Wed, 4 Apr 2018 16:20:25 -0700 (PDT) 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 s6_AYjKcqoX0 for ; Wed, 4 Apr 2018 16:20:24 -0700 (PDT) Received: from mail-wm0-f41.google.com (mail-wm0-f41.google.com [74.125.82.41]) by arlo.cworth.org (Postfix) with ESMTPS id 1F5386DE0227 for ; Wed, 4 Apr 2018 16:20:24 -0700 (PDT) Received: by mail-wm0-f41.google.com with SMTP id r191so1226568wmg.4 for ; Wed, 04 Apr 2018 16:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=6Ei932Gn8F7uJuRlpaC1W0DQBskOY8iHvMV01WIqEMc=; b=aKWlKxfP++MBRl3J/WKmmXhFuQRE8WKxtaF4U01dMl6TluCXcUDGsJ1HAYfj9YMNzi enpcpP3/t9KSsTpx/p9D0E71AKTLKtq44OTE8C0g19cZDvTGPC4fIqQg6IZEvalvlH0U tKtDGX53MqRP6K15UVNYR8/3uZimDRu23TPgUMtoKHjOZCCauvELn8TtW8pF2X6H41AD CshDnIZhAWHG5DoPKqKxlD+bXf/n6VFNflr0UqOkzvyAi8dDM9HmCWWqxBnVeMyXq6xy 0MbaFAB7BGmpq/F2ykSpb7j92W0/RJgeQd1j2XlhX2PUmp5MbG6aEdwhve6OsDTZhyAE dISQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=6Ei932Gn8F7uJuRlpaC1W0DQBskOY8iHvMV01WIqEMc=; b=VG+1ZjH0MLG8e8Ui4YF38CbRDAjO2WRpwB04C2Sofp5v5VIbpDkGLwP30TyrbKzIQP PjQ/w5b2qyj2gzpJGW0qDOxFAqIZ8hyYpI81nt2oCPSKraay/7zrRiggxke4J7kGRnSN qt2V9zuHKbD46nT3rVVjhk7kIGCimHiVOT4k4vQzxqD8nJ1W9jBIRkML1wK6hd4kucKS sRKWL+nNSnBiGVdoMCBTGDLZLJtuCsrt2ru5BDKdmO3F0HhyNoOz/RDlCAM1u/GseXD0 LPsFjAhElcztsX7Idfuqctv/8zYobBqZWx/n/rSK1nKQ0qc2sFDGXSNabwTkHwRKSn/8 wKHg== X-Gm-Message-State: AElRT7HuTGezqfMftjDKW8nEVSCMZGqvSIGT94RdbufdE712JvWw+iGF FPxTxMWFtqqHmQv0Eu6dQwYzd5pe X-Google-Smtp-Source: AIpwx48DvkNqrR7+HUby/69yYEzAdaGQ5CgKGGH1hMu4Yz5H52kQE8w6u0SFGlY+R1syKR+/7iEu2A== X-Received: by 10.28.114.15 with SMTP id n15mr9508662wmc.88.1522884020892; Wed, 04 Apr 2018 16:20:20 -0700 (PDT) Received: from localhost.localdomain ([87.124.229.17]) by smtp.gmail.com with ESMTPSA id d48sm10104947wrd.12.2018.04.04.16.20.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Apr 2018 16:20:19 -0700 (PDT) To: notmuch@notmuchmail.org From: Javier Garcia Subject: Xapian regex with parentheses fails Message-ID: <2caa01b0-eec2-6c3f-480c-67b8f0e986e3@gmail.com> Date: Thu, 5 Apr 2018 01:20:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-Mailman-Approved-At: Fri, 06 Apr 2018 03:21:44 -0700 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.26 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, 04 Apr 2018 23:20:25 -0000 Hi, I'm configuring notmuch in a multi-account directory. I want it to tag spam and deleted mails using a post hook. Using regexes with parentheses fails, or perhaps I misunderstood the documentation. The following one liner replicates the problem I face. $ notmuch search 'folder:/^.*/(Junk|Spam)$/' notmuch search: A Xapian exception occurred A Xapian exception occurred parsing query: unmatched regex delimiter in '/^.*/(Junk|Spam' Query string was: folder:/^.*/(Junk|Spam)$/ Javier