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 2448B431FB6 for ; Mon, 17 Jan 2011 05:00:49 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.09 X-Spam-Level: X-Spam-Status: No, score=-0.09 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, 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 Eu8LPvGN-s-g for ; Mon, 17 Jan 2011 05:00:47 -0800 (PST) Received: from homiemail-a22.g.dreamhost.com (caiajhbdccac.dreamhost.com [208.97.132.202]) by olra.theworths.org (Postfix) with ESMTP id A2DC1431FB5 for ; Mon, 17 Jan 2011 05:00:47 -0800 (PST) Received: from homiemail-a22.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a22.g.dreamhost.com (Postfix) with ESMTP id F1A611A8069 for ; Mon, 17 Jan 2011 05:00:46 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=SSpaeth.de; h=from:to:subject :in-reply-to:references:date:message-id:mime-version: content-type; q=dns; s=sspaeth.de; b=FKkLPblq0D4LiwvDUNkYgVelTeD Pmtx9cnhynJofR427D+v5DPF1V6CJYQxBbFcytAy9NbtKeAEc8rwW4Tt5siL5Xh+ wB5DRbKIljmUtzDcP4S8UMdwP1rsfqwCBaYJEjiKBD7UNZN+JXSLwTzZQOjsMGWx 8c3yBPEOZJaYqPbc= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=SSpaeth.de; h=from:to :subject:in-reply-to:references:date:message-id:mime-version: content-type; s=sspaeth.de; bh=02QI+Y7ceYlMoiq36M0bfMEF6EA=; b=n AqzogNGKLXNpeSM+tupIEfmH4td0muMr/84k9IAp8y2RxJdPp4w+d6+KggvIngWh 8FBsjPqaE5dGVkdsFW+wlLZXlOh/biaCnXOGp1H0oh9Krwajjd/KV7+2xUA5py3l PIHl8ox/ClzyWTcet38QMNYK3M96wqzjuk1e2rnDNM= Received: from spaetzbook.sspaeth.de (unknown [195.190.171.9]) (Authenticated sender: fax@sspaeth.de) by homiemail-a22.g.dreamhost.com (Postfix) with ESMTPA id 5F8871A8061 for ; Mon, 17 Jan 2011 05:00:45 -0800 (PST) Received: by spaetzbook.sspaeth.de (sSMTP sendmail emulation); Mon, 17 Jan 2011 14:00:42 +0100 From: Sebastian Spaeth To: notmuch@notmuchmail.org Subject: Re: Folder-based searching In-Reply-To: <878vyjya2n.fsf@SSpaeth.de> References: <87tyh9wzs2.fsf@yoom.home.cworth.org> <878vyjya2n.fsf@SSpaeth.de> User-Agent: Notmuch/0.5-37-g3863e88 (http://notmuchmail.org) Emacs/23.1.1 (x86_64-pc-linux-gnu) Date: Mon, 17 Jan 2011 14:00:41 +0100 Message-ID: <87vd1n4rd2.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; 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: Mon, 17 Jan 2011 13:00:49 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable On Mon, 17 Jan 2011 13:43:44 +0100, Sebastian Spaeth = wrote: > > Before the next release, I plan to increment the database version so > > that users will be notified of the need to do an upgrade like this. (But > > before I do that, I plan to implement a few more database changes---and > > some of them are likely to be much more invasive than this one). >=20 > Hurray, just tried it out and it works like a charm. Finally I can > automatically assign the "Junk" tag again. :-) Well, it's never as easy as it looks at first glance. Initial run picks up folder:junk and reports correctly (is it supposed to be case-insensitive?). However, when moving files into another folder and rerunning notmuch new, the folder value is never updated, it seems. This is what I run to move mails that had been wrongly classified as Junk and that I manually untagged into my INBOX: notmuch search --output=3Dfiles not tag:junk and folder:junk | xargs mv -t /home/spaetz/mail/INBOX/cur/ However, each subsequent run of: notmuch search --output=3Dfiles not tag:junk and folder:junk will show the same files, even after a notmuch new... Sebastian --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) iEYEARECAAYFAk00PXkACgkQVYX1jMgnoGJKagCcDcCXZevYe/iMNK/598IVdHIP DpIAn1r+o3XeElfB7PMCwPDkT8V16TzI =B1Rp -----END PGP SIGNATURE----- --=-=-=--