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 14E59431FAE for ; Sat, 21 Nov 2009 13:17:09 -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 1qreFow0QL01 for ; Sat, 21 Nov 2009 13:17:07 -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 E01ED431FBC for ; Sat, 21 Nov 2009 13:17:06 -0800 (PST) Received: by bwz24 with SMTP id 24so3133256bwz.30 for ; Sat, 21 Nov 2009 13:17:06 -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=Yj/rxRlPV1Em55E7qy2CofH1nUWEY90XhNQRVOhddAw=; b=o8zmGlKmmCKQ0aqN173tZUAk2UyuYOnn6iTTPZxu/HGixn982wtc+y5Gr6Jw32XvDB 1rMnRyWBAaGPf0nwtPzHVzGNhQk4oX3HiT8YL/JhTSgIqLaeqGRTAEv4IUY5Q2i6DDAu 3ezeXDyAAKaWtXHGaTKf/I4bf66rMoN0Ta1IE= 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=cVfpFteZfHjkpDE1QDNJc6F7+dazVvT9pi2snrYIL2lwS+RTQpxmuIrl03RJBQDOyJ ZAtvWyuGOcz8d15cnsqIzHiQgTFdznlz2dugtVourfL/Da9y5hfIrphuiIs42/eyCeKv LiYB3ywXMvOhoXkWUKqget7uCjw27G373dxG8= Received: by 10.204.34.70 with SMTP id k6mr2898538bkd.178.1258838225984; Sat, 21 Nov 2009 13:17:05 -0800 (PST) Received: from kunyang (vawpc43.ethz.ch [129.132.59.11]) by mx.google.com with ESMTPS id 26sm3390189fks.50.2009.11.21.13.17.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 21 Nov 2009 13:17:04 -0800 (PST) Sender: Jed Brown From: Jed Brown To: Carl Worth , notmuch@notmuchmail.org In-Reply-To: <87tywn386a.fsf@yoom.home.cworth.org> References: <87fx87u3no.fsf@59A2.org> <87einru0f9.fsf@59A2.org> <87tywn386a.fsf@yoom.home.cworth.org> Date: Sat, 21 Nov 2009 22:17:34 +0100 Message-ID: <87aayftw5t.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 21:17:09 -0000 On Sat, 21 Nov 2009 22:00:13 +0100, Carl Worth wrote: > Ah, OK. So you made a change on the Gmail side and that caused a file to > be renamed locally. yes > Or did you mean you removed the tag from within emacs? In that case, the > search term used to find the message is the message id itself. (Try > running "M-x visible-mode" from a notmuch-search view in emacs to see > what those look like.) Exactly, that's what I meant by manually. Those messages don't match a nice generic pattern. > Meanwhile, just archiving the message won't make things perfect for > you. The document in the database point to the broken file is still > there. And it should still have all of its terms, so will likely show up > if you do more searches. (The "(null)" stuff you're seeing isn't because > the message is NULL---for example, notmuch was able to find the date, > etc. It's just that notmuch couldn't find the subject and authors when > it went to look for the file.) Yeah. > So if GMail+offlineimap continues to shuffle your files around, you're > going to keep seeing more and more confusion like this buildup. > > So we really just need to teach notmuch how to handle an unstable file > store in order to be able to use it in this kind of setup. This seems unavoidable with maildir in the presence of any synchronization, or use of a different client. An ugly, but possible solution would be to mirror the entire maildir via hard links with whatever naming scheme you like. You then have a stable link to the file and can resolve changing names in the real maildir. This eats up a lot of inodes. Jed