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 43507431FBD for ; Sun, 18 Nov 2012 11:05:15 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0 X-Spam-Level: X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] autolearn=disabled 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 A++tT9Z8vw2S for ; Sun, 18 Nov 2012 11:05:14 -0800 (PST) Received: from tesseract.cs.unb.ca (tesseract.cs.unb.ca [131.202.240.238]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 9FFB2431FAF for ; Sun, 18 Nov 2012 11:05:14 -0800 (PST) Received: from fctnnbsc30w-156034089108.dhcp-dynamic.fibreop.nb.bellaliant.net ([156.34.89.108] helo=zancas.localnet) by tesseract.cs.unb.ca with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1TaAB4-00027v-Rq for notmuch@notmuchmail.org; Sun, 18 Nov 2012 15:05:11 -0400 Received: from bremner by zancas.localnet with local (Exim 4.80) (envelope-from ) id 1TaAAz-0001I4-AD for notmuch@notmuchmail.org; Sun, 18 Nov 2012 15:05:05 -0400 From: david@tethera.net To: notmuch@notmuchmail.org Subject: Add new dump/restore format and batch tagging. Date: Sun, 18 Nov 2012 15:04:42 -0400 Message-Id: <1353265498-3839-1-git-send-email-david@tethera.net> X-Mailer: git-send-email 1.7.10.4 X-Spam_bar: - 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: Sun, 18 Nov 2012 19:05:15 -0000 This is a patch series with some history, if you will forgive the semi-inadvertant pun. I list that at that end, for the curious. If this series goes in, in the future we might consider whether restore --accumulate provides important functionality over batch tagging; at the moment I suggest leaving it as the extra code to support it is minimal, and it does support peoples existing scripts using the old dump/restore format. History ------- About 1 year ago, Petter Reinholdtsen observed a problem with dumping and restoring message-id's with spaces in them. id:2flfwhht87d.fsf@diskless.uio.no There followed a proposed fix id:1323808075-7417-1-git-send-email-david@tethera.net Which Dmitry had a few helpful things to say about the hex encoding libs. Jani took that foundation and proposed two versions of the batch tagging, most recently at id:cover.1334404979.git.jani@nikula.org. There was some discussion with Jamie about the file format for batch tagging in the thread id:cover.1333231401.git.jani@nikula.org id:1323808075-7417-1-git-send-email-david@tethera.net The first 6 of these patches obsolete the series id:1345382314-5330-1-git-send-email-david@tethera.net which was revied by Tomi and Ethan. I think I implemented their suggestions. Although I didn't re-read that whole thread, I believe this version of the patches address's Jamie's concerns by using exactly the same format for restore and tag --batch (renamed from Jani's choice of --stdin).