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 C91126DE0B2F for ; Sun, 18 Dec 2016 23:38:55 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.001 X-Spam-Level: X-Spam-Status: No, score=-0.001 tagged_above=-999 required=5 tests=[SPF_HELO_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 GZZ7X58Z-lXJ for ; Sun, 18 Dec 2016 23:38:54 -0800 (PST) Received: from code.pm (ks39550.kimsufi.com [91.121.23.116]) by arlo.cworth.org (Postfix) with ESMTP id C888C6DE0AE5 for ; Sun, 18 Dec 2016 23:38:53 -0800 (PST) Received: from shanghai.localdomain (unknown [91.180.222.131]) by code.pm (Postfix) with ESMTPSA id D6F85BF9F4; Mon, 19 Dec 2016 08:38:51 +0100 (CET) Received: by shanghai.localdomain (Postfix, from userid 1000) id 9BF0834C1E68; Mon, 19 Dec 2016 08:38:51 +0100 (CET) From: Erik Colson To: Steven Allen Cc: notmuch@notmuchmail.org Subject: Re: wildcards with path or folder References: <87mvfsc0ax.fsf@ecocode.net> <87bmw83jwl.fsf@stebalien.com> Date: Mon, 19 Dec 2016 08:38:51 +0100 In-Reply-To: <87bmw83jwl.fsf@stebalien.com> (Steven Allen's message of "Sun, 18 Dec 2016 15:19:22 -0800") Message-ID: <874m202ws4.fsf@ecocode.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.22 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: Mon, 19 Dec 2016 07:38:55 -0000 Steven Allen writes: > You're probably looking for `path:path/to/folder/**` (e.g. `path:Archive/**`). > > Documentation: > > * man 7 notmuch-search-terms > * https://notmuchmail.org/manpages/notmuch-search-terms-7/ Hi Steven, Thank you for your answer. I tried the usage of path with wildcards, but it does only recursively report messages in a real directory tree. I'm using dovecot maildir. So the folder hierarchy is _not_ saved as phisical directory tree but as multiple directories inside the root maildir directory. So for this folder hierarchy: - MAIN1 - SUB1 - SUB2 - MAIN2 I have following directories inside maildir: .MAIN1 .MAIN1.SUB1 .MAIN1.SUB2 .MAIN2 The path:.MAIN1/** will not go down inside subfolders SUB1 and SUB2. Is there any way to achieve this ? thx! -- erik colson