Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id CF88D431FB6 for ; Tue, 20 Dec 2011 14:14:50 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -2.29 X-Spam-Level: X-Spam-Status: No, score=-2.29 tagged_above=-999 required=5 tests=[RCVD_IN_DNSWL_MED=-2.3, T_MIME_NO_TEXT=0.01] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WmarpwHRGNop for ; Tue, 20 Dec 2011 14:14:48 -0800 (PST) Received: from outgoing-mail.its.caltech.edu (outgoing-mail.its.caltech.edu [131.215.239.19]) by olra.theworths.org (Postfix) with ESMTP id B583D431FD0 for ; Tue, 20 Dec 2011 14:14:48 -0800 (PST) Received: from fire-doxen.imss.caltech.edu (localhost [127.0.0.1]) by fire-doxen-postvirus (Postfix) with ESMTP id 31D42328011; Tue, 20 Dec 2011 14:14:46 -0800 (PST) X-Spam-Scanned: at Caltech-IMSS on fire-doxen by amavisd-new Received: from finestructure.net (DHCP-123-180.caltech.edu [131.215.123.180]) (Authenticated sender: jrollins) by fire-doxen-submit (Postfix) with ESMTP id 7F22532807B; Tue, 20 Dec 2011 14:14:43 -0800 (PST) Received: by finestructure.net (Postfix, from userid 1000) id 4DC7B15B9; Tue, 20 Dec 2011 14:14:43 -0800 (PST) From: Jameson Graef Rollins To: emmanuel.leblond@gmail.com, notmuch@notmuchmail.org Subject: Re: Question : Tag mail according to it directory path ? In-Reply-To: <201112122159.09937.nitrotechno@laposte.net> References: <201112122159.09937.nitrotechno@laposte.net> User-Agent: Notmuch/0.10.2+93~ga124635 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Tue, 20 Dec 2011 14:14:40 -0800 Message-ID: <87pqfisxf3.fsf@servo.finestructure.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 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: Tue, 20 Dec 2011 22:14:50 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Mon, 12 Dec 2011 21:59:09 +0100, emmanuel.leblond@gmail.com wrote: >=20 > I have a 4000+ mail collection already sorted in folders. The point is I = would=20 > like to tag those mails through the notmuch database according to those=20 > folders. (i.g. the mails in the friend/foo directory will be tagged as fr= iend=20 > and foo) Hi, Emanuel. There is already the ability to search for messages by path with the "folder:" search prefix. From "notmuch help search-terms": The folder: prefix can be used to search for email message files that are contained within particular directories within the mail store. Only the directory components below the top-level mail database path are available to be searched. You can then easily apply arbitrary tags with something like: notmuch tag +foo -- folder:foo hth. jamie. --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBCAAGBQJO8QjRAAoJEO00zqvie6q8KkoP/RiPRclKCVgTAWGmarSmOvIl BpQ4EpE8D3BLObNT1JXH3NVmlgTFWzXcR/4YvzmPD/6yDigRT0SsSuy0yL2uJilN en319bp5a8WUAOPjgySDO9F8Gv2lFX5k1CL+pmqwtkggvZeev4WfKFra0LySLEQg zDbQyxIIgP9iASuVjIIOiX32yp9r7saG34Gf9wqRIYaofaG3Bavo9kGlP3fA31oJ PcK1cL2zqyjeWQuLSbJoFJPUAwCHFJa5612ca/X2vgHa16WkIuntivuSl/RWgcbH RYSMkIQTuvMJMlcOHha8wBiKJdn+7lG4aC0vIVEsT1rNSx5TmFKYx+PuSWbkG4ZC pN+O/49BrUCiTYETTatVpAudz/Gu4C9hWYd9cJR8MBAxYazGl+XqXm1vrBf+3K6u RSdQYsaWg42MP9+0+sb7jr01TipgJnjwFhg/y55G9C4iSqFNZ4QxM6ZAAfhc3ahR znB9FIZi+Yk7mrpZyB83lUTtnYyy54HR51GreaopVqhR5ldcDQSPbBngjLGitXHM WUJXX58nP54WbcnxheRuRWknTXVoMHKKDE7Y0G+lYFPLlbDMdVjfydRBjs3CWsxc 2aElYuL1SmSslAn/3EznWKCZ5ytXFQa8YaXQV4F8xFReyero26+7r1DlccgmwBz1 6ZFK4+GBJzlOQdjnMhbg =SL85 -----END PGP SIGNATURE----- --=-=-=--