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 62660431FBF for ; Sat, 21 Nov 2009 12:47:53 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org 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 LXxLelvsGZND for ; Sat, 21 Nov 2009 12:47:52 -0800 (PST) Received: from mail-bw0-f224.google.com (mail-bw0-f224.google.com [209.85.218.224]) by olra.theworths.org (Postfix) with ESMTP id 86A0E431FBC for ; Sat, 21 Nov 2009 12:47:52 -0800 (PST) Received: by bwz24 with SMTP id 24so3124506bwz.30 for ; Sat, 21 Nov 2009 12:47:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:subject :in-reply-to:references:date:message-id:mime-version:content-type; bh=yz3yH7DOik+tqMMyPFdFVvp3Vg42tNbSA5I2BGG3mA8=; b=XF17TNnrDPPxyFaHaOe2dKI9/IEhp+4wmAHBf/qrgsAbonTCi3k2E8ZFBz7WlE3NdA /mOeBHQo3NqOA5Zj3dTO8T+Wbe+fYM22Caj+gMc2FBTvk714+plcGFKJ5AxBlrovLib4 OUqItNf6ows2TaJvR7GwvstOwQZuqM4vZRXfg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:subject:in-reply-to:references:date:message-id :mime-version:content-type; b=Nt59rmMbGM3/M05OTxowx2AdIIu35bSc4zBew3iFdjWtHdK1w8Q3sQp3kq22uX2U/x I3ssd1dSRHvLyv3g+AtOJQr421QN5Ua/8zOajQyGxkFxuEi67IvTv8NkGRJXTwtcfrq7 cl8bqQpm0uuT0nkugjyoS3j6tDGfVvhm8jVSE= Received: by 10.204.21.4 with SMTP id h4mr2957632bkb.58.1258836471490; Sat, 21 Nov 2009 12:47:51 -0800 (PST) Received: from kunyang (vawpc43.ethz.ch [129.132.59.11]) by mx.google.com with ESMTPS id p17sm3346921fka.5.2009.11.21.12.47.49 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Nov 2009 12:47:50 -0800 (PST) Sender: Jed Brown From: Jed Brown To: Carl Worth , notmuch@notmuchmail.org In-Reply-To: <874oon4pgv.fsf@yoom.home.cworth.org> References: <87fx87u3no.fsf@59A2.org> <874oon4pgv.fsf@yoom.home.cworth.org> Date: Sat, 21 Nov 2009 21:48:19 +0100 Message-ID: <87d43btxik.fsf@59A2.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] Asynchronous tagging X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.12 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: Sat, 21 Nov 2009 20:47:53 -0000 On Sat, 21 Nov 2009 21:01:20 +0100, Carl Worth wrote: > Yes, this is a known bug in Xapian (it rewrites all of the indexed terms > for the email message even though you're just trying to add/remove one > term). The Xapian ticket for this is here: > > replace_document should make minimal changes to database file > http://trac.xapian.org/ticket/250 This bug report is concerned that it could require an API change, it sounds like you think this is unnecessary. Thanks for the detailed explanation. > Chris Wilson just contributed a patch to enable read-only usage of > notmuch while another notmuch process holds the write lock. I'm running it. > Does offlineimap use tmp while it's delivering message and then move > things to new? If so, then maybe all we need to do to fix notmuch to not > look into tmp directories? Yes, that's how maildir is supposed to work. Deliver to tmp, hard link from new, then unlink in tmp. The client should never look in tmp. Should be very quick to fix in notmuch. Jed