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 7EE16431FBC for ; Tue, 19 Jan 2010 08:13:49 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.357 X-Spam-Level: X-Spam-Status: No, score=-0.357 tagged_above=-999 required=5 tests=[AWL=-0.358, 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 1UFBvkr1DEWf for ; Tue, 19 Jan 2010 08:13:48 -0800 (PST) Received: from homiemail-a17.g.dreamhost.com (caiajhbdcbhh.dreamhost.com [208.97.132.177]) by olra.theworths.org (Postfix) with ESMTP id 9E4EA431FAE for ; Tue, 19 Jan 2010 08:13:48 -0800 (PST) Received: from sspaeth.de (mtec-hg-docking-2-dhcp-062.ethz.ch [82.130.121.62]) by homiemail-a17.g.dreamhost.com (Postfix) with ESMTPA id CA1E67A805C; Tue, 19 Jan 2010 08:13:46 -0800 (PST) Received: by sspaeth.de (sSMTP sendmail emulation); Tue, 19 Jan 2010 17:13:44 +0100 From: "Sebastian Spaeth" To: notmuch@notmuchmail.org In-Reply-To: <20100119160449.GA28198@finestructure.net> References: <87pr57jvkz.fsf@SSpaeth.de> <201001181641.25647.sojkam1@fel.cvut.cz> <87hbqjwgmf.fsf@SSpaeth.de> <87my0a5i80.fsf@SSpaeth.de> <87my0aqgw9.fsf@veldthuis.com> <20100119152427.GL8342@finestructure.net> <877hrexfat.fsf@SSpaeth.de> <20100119160449.GA28198@finestructure.net> Date: Tue, 19 Jan 2010 17:13:44 +0100 Message-ID: <87636yxebr.fsf@SSpaeth.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: [notmuch] Introducing notmuchsync 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: Tue, 19 Jan 2010 16:13:49 -0000 On Tue, 19 Jan 2010 11:04:49 -0500, Jameson Rollins wrote: > I should have mentioned in my previous mail that I think this tool is > a great idea, and I plan on using it. I just hope that all of it's > functionality will be integrated directly into notmuch itself. I fully agree. [Snip more stuff I fully agree with] [snip workflow] > Do you do another notmuchsync after the final notmuch new, to get any > new flags in the maildir synced with the database? Ohh, I had never considered that, but true, if another mail client modifies maildir flags, we probably want to have that reflected as notmuch tags as well... So, yes that should work even better (my real script is a bit fancier, changing output options ans stuff): notmuch new # make db consistent (earlier deleted mails etc) notmuchsync -s -n # MailDir flags update and "cur" dir moving offlineimap # sync with IMAP server notmuch new # incorporate new mails in notmuch db notmuchsync -r -n # reflect changed MailDir flags in notmuch tags Sorry for all the spam today about my toys. I'll try to keep a bit more quiet in the future in order to not start annoying you. :-) spaetz