Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 21B066DE0AD1 for ; Tue, 21 Jul 2015 17:41:46 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -2.067 X-Spam-Level: X-Spam-Status: No, score=-2.067 tagged_above=-999 required=5 tests=[AWL=0.784, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.55, SPF_PASS=-0.001] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XpgmEdX6ooXQ for ; Tue, 21 Jul 2015 17:41:43 -0700 (PDT) X-Greylist: delayed 1534 seconds by postgrey-1.35 at arlo; Tue, 21 Jul 2015 17:41:43 PDT Received: from market.scs.stanford.edu (market.scs.stanford.edu [171.66.3.10]) by arlo.cworth.org (Postfix) with ESMTPS id 7928E6DE0A87 for ; Tue, 21 Jul 2015 17:41:43 -0700 (PDT) Received: from market.scs.stanford.edu (localhost.scs.stanford.edu [127.0.0.1]) by market.scs.stanford.edu (8.14.7/8.14.7) with ESMTP id t6M0G7id010666; Tue, 21 Jul 2015 17:16:07 -0700 (PDT) Received: (from dm@localhost) by market.scs.stanford.edu (8.14.7/8.14.7/Submit) id t6M0G6Fj030472; Tue, 21 Jul 2015 17:16:06 -0700 (PDT) X-Authentication-Warning: market.scs.stanford.edu: dm set sender to return-e6de6hhfxhg7pvcfnevedheczw@ta.scs.stanford.edu using -f From: David Mazieres To: Daniel Schoepe , notmuch@notmuchmail.org Subject: Re: notmuch-lazysync -- synchronizing tags using dropbox In-Reply-To: <87a8upjqts.fsf@schoepe.localhost> References: <87a8upjqts.fsf@schoepe.localhost> Reply-To: David Mazieres expires 2015-10-19 PDT Date: Tue, 21 Jul 2015 17:16:05 -0700 Message-ID: <871tg1yrlm.fsf@ta.scs.stanford.edu> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.18 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, 22 Jul 2015 00:41:46 -0000 Daniel Schoepe writes: > The way tag changes are logged is a bit of a hack, but it could be > improved in the future by adding a post-tag hook to notmuch. One thing to look into, if you are thinking of a better logging mechanism, is that Xapian itself has a change logging mechanism for replicating databases (http://xapian.org/docs/replication.html). I do think it would be cleaner to do this in a way that is integrated with notmuch, but I think the best way to do this is to integrate a "modtime" value into the Xapian database. Having a modtime for each record would not only allow incremental transfers (just record the highest timestamp sent to each replica), it would also solve this terrible problem that in emacs you can end up tagging messages you don't see (because you apply a tag to the query result, when new mail has come in--which would be solved by tagging only through the higest modtime actually displayed). When you have one mechanism (modtime) that solves multiple problems, it is likely the right thing to use... David