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 BDA1A431FBD for ; Wed, 3 Feb 2010 01:58:47 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.129 X-Spam-Level: X-Spam-Status: No, score=-0.129 tagged_above=-999 required=5 tests=[AWL=-0.130, 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 204+4ZRtxwkw for ; Wed, 3 Feb 2010 01:58:47 -0800 (PST) Received: from homiemail-a11.g.dreamhost.com (caiajhbdcbhh.dreamhost.com [208.97.132.177]) by olra.theworths.org (Postfix) with ESMTP id 20323431FAE for ; Wed, 3 Feb 2010 01:58:47 -0800 (PST) Received: from sspaeth.de (mtec-hg-docking-1-dhcp-204.ethz.ch [129.132.133.204]) by homiemail-a11.g.dreamhost.com (Postfix) with ESMTPA id 4BE3E19406D for ; Wed, 3 Feb 2010 01:58:45 -0800 (PST) Received: by sspaeth.de (sSMTP sendmail emulation); Wed, 03 Feb 2010 10:58:42 +0100 From: "Sebastian Spaeth" To: notmuch@notmuchmail.org In-Reply-To: <201002022325.18878.sojkam1@fel.cvut.cz> References: <201001291049.21048.sojkam1@fel.cvut.cz> <873a1jebve.fsf@servo.finestructure.net> <87r5p3l3yd.fsf@lillypad.riseup.net> <201002022325.18878.sojkam1@fel.cvut.cz> Date: Wed, 03 Feb 2010 10:58:42 +0100 Message-ID: <87fx5ibpyl.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Wed, 03 Feb 2010 09:58:47 -0000 On Tue, 2 Feb 2010 23:25:18 +0100, Michal Sojka wrote: > 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. On a tangetial issue: It would help if notmuch were able to set an (optional) flag when detecting a rename. Similar on how it should set "new" on new messages, a "moved" tag or whatever would make parsing with 3rd party apps much nicer. E.g. my folder-to-tag syncer could then just look for moved mails and my MailDirflag-to-notmuchtag syncer could then limit its search also to "moved" mails, which would be much more efficient. What do people think? Basically what I want is: notmuch.conf: tag-for-new="inbox unread notspamchecked whatnothere" tag-for-moved="moved" Does this make sense? Sebastian