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 D40C94196F4 for ; Sat, 12 Jun 2010 09:05:11 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -4.2 X-Spam-Level: X-Spam-Status: No, score=-4.2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3] 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 Z3mgAHPIYy-9 for ; Sat, 12 Jun 2010 09:05:01 -0700 (PDT) Received: from ipex2.johnshopkins.edu (ipex2.johnshopkins.edu [162.129.8.151]) by olra.theworths.org (Postfix) with ESMTP id 3AFD14196F2 for ; Sat, 12 Jun 2010 09:05:01 -0700 (PDT) X-IronPort-AV: E=Sophos;i="4.53,408,1272859200"; d="scan'208";a="337597579" Received: from c-69-255-36-229.hsd1.md.comcast.net (HELO lucky.home) ([69.255.36.229]) by ipex2.johnshopkins.edu with ESMTP/TLS/AES256-SHA; 12 Jun 2010 12:05:00 -0400 Received: from jkr by lucky.home with local (Exim 4.71) (envelope-from ) id 1ONTCO-0001Ax-L9; Sat, 12 Jun 2010 12:04:44 -0400 From: Jesse Rosenthal To: Christoph Groth , notmuch@notmuchmail.org Subject: Re: syncing mail by simply syncing the filesystem In-Reply-To: <87eigc9rt0.fsf@falma.de> References: <87631obu64.fsf@falma.de> <87vd9o5rtj.fsf@rocinante.cs.unb.ca> <87y6eke67e.fsf@lucky.home> <87eigc9rt0.fsf@falma.de> User-Agent: Notmuch/0.3.1-58-g6607fd6 (http://notmuchmail.org) Emacs/23.2.1 (i486-pc-linux-gnu) Date: Sat, 12 Jun 2010 12:04:44 -0400 Message-ID: <87sk4sdyoz.fsf@lucky.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Sat, 12 Jun 2010 16:05:12 -0000 Hi Christoph, On Sat, 12 Jun 2010 17:47:07 +0200, Christoph Groth wrote: > > notmuch dump > nm_dump > > unison > > notmuch restore nm_dump > > This might actually be the perfect solution, if notmuch is fast enough > to dump and restore the tags in a few seconds. Well, it's a bit slower than that. Restoring will be more in the multiples of tens of seconds (though perhaps less if you're using searches much more than tags). If you're only doing it once in a while, it'll be okay (especially since it'll pale next to the speed of unison-ing maildirs), but it could get to be a bit of a pain. I was thinking about how to cut this down in a previous email exchange on the list: id:87aaru5yi2.fsf@jhu.edu (http://mid.gmane.org/87aaru5yi2.fsf@jhu.edu) The key part is that if I think restore (which is what takes more time) leaves unmentioned messages as they are, so you can run it on a diff, so something like: nm dump desktop>desktop-dump; nm dump laptop>laptop-dump; diff laptop-dump desktop | grep "^>" | etc... So when you restore, you'd only be restoring the changes, and it would drop to a second or two. If you're scripting all the other stuff together with unison, this could be part of the script as well. Anyway, this is all rather raw -- my own use-cases haven't made it necessary to do anything more than spout off on the mailing list about it. Best, Jesse