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 090E1431FBD for ; Tue, 2 Feb 2010 14:25:31 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.811 X-Spam-Level: X-Spam-Status: No, score=-0.811 tagged_above=-999 required=5 tests=[AWL=-0.812, BAYES_50=0.001] autolearn=ham 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 iYbl4C2Up061 for ; Tue, 2 Feb 2010 14:25:30 -0800 (PST) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 3C9BA431FAE for ; Tue, 2 Feb 2010 14:25:30 -0800 (PST) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 9DE8319F33E1; Tue, 2 Feb 2010 23:25:29 +0100 (CET) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id 3w1f8q8GnIQg; Tue, 2 Feb 2010 23:25:25 +0100 (CET) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id 6C5F819F33D7; Tue, 2 Feb 2010 23:25:25 +0100 (CET) Received: from wsheee.localnet (unknown [213.29.198.144]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id EE18315C052; Tue, 2 Feb 2010 23:25:24 +0100 (CET) From: Michal Sojka To: notmuch@notmuchmail.org Date: Tue, 2 Feb 2010 23:25:18 +0100 User-Agent: KMail/1.12.2 (Linux/2.6.31.9; KDE/4.3.2; i686; ; ) References: <201001291049.21048.sojkam1@fel.cvut.cz> <873a1jebve.fsf@servo.finestructure.net> <87r5p3l3yd.fsf@lillypad.riseup.net> In-Reply-To: <87r5p3l3yd.fsf@lillypad.riseup.net> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201002022325.18878.sojkam1@fel.cvut.cz> Subject: Re: [notmuch] [PATCHv2] Preserve folder information when indexing 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, 02 Feb 2010 22:25:31 -0000 On Tuesday 02 February 2010 22:31:38 micah anderson wrote: > On Tue, 02 Feb 2010 13:22:29 -0500, Jameson Rollins wrote: > > I'm starting to think that maybe the folder: field is not the right way > > to do this, though. What if a message moves? > > The easiest way to answer this question is to try it. I did that, and > things didn't work as expected. I expected that once the message was > moved to a different folder, and 'notmuch new' was run, then the folder > search result would move with the message move. I want it to work the same way as you expected. It seems it would be necessary to modify notmuch_database_remove_message() so that it changes folder term if it detects rename. I guess it should be possible. If tags can be modified then folder terms can be modified as well. Michal