Re: [PATCH] RFC: impliment gzipped output for notmuch dump
authorJani Nikula <jani@nikula.org>
Sat, 29 Mar 2014 13:02:25 +0000 (15:02 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 18:01:03 +0000 (10:01 -0800)
83/f8dfaeaae3fa439954f9d08eae9843c1159ad2 [new file with mode: 0644]

diff --git a/83/f8dfaeaae3fa439954f9d08eae9843c1159ad2 b/83/f8dfaeaae3fa439954f9d08eae9843c1159ad2
new file mode 100644 (file)
index 0000000..5f82aa4
--- /dev/null
@@ -0,0 +1,97 @@
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 1559B431FBF\r
+       for <notmuch@notmuchmail.org>; Sat, 29 Mar 2014 06:02:40 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id fEWHg3C4ob4f for <notmuch@notmuchmail.org>;\r
+       Sat, 29 Mar 2014 06:02:32 -0700 (PDT)\r
+Received: from mail-ee0-f43.google.com (mail-ee0-f43.google.com\r
+ [74.125.83.43])       (using TLSv1 with cipher RC4-SHA (128/128 bits))        (No client\r
+ certificate requested)        by olra.theworths.org (Postfix) with ESMTPS id\r
+ 81503431FBC   for <notmuch@notmuchmail.org>; Sat, 29 Mar 2014 06:02:32 -0700\r
+ (PDT)\r
+Received: by mail-ee0-f43.google.com with SMTP id e53so4975083eek.2\r
+       for <notmuch@notmuchmail.org>; Sat, 29 Mar 2014 06:02:30 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:from:to:subject:in-reply-to:references\r
+       :user-agent:date:message-id:mime-version:content-type;\r
+       bh=XyX+6Cg90OhUVSumzvcemY6E2QVLnKHBLZEXP12gY90=;\r
+       b=CZdL9SGupMhiPQioGPRG3IVcOxgnhRRkDa7NuqfBtAEDyLDGK+ElkCkQrG4rmoXkGg\r
+       qfJJPGKlCu9HK6M8v85YTXkGZE8YGmF/wd9U8lDMRemwo5/eGyD17cFjvm6t0GV80n6L\r
+       swmZ/QxlGqA4mr0zmnuvh8HypM9xLqvuoC83v4fkgzxkNFWxWLFNEyZ/lnPiYu+BrY0q\r
+       9L7GedJ4qylaBJcxYcKKQ03M9BLYFwGs+e4ugNakvZyBVZykjADuRdqPuG1U/zlec8Qz\r
+       Mhirc+tCUdb2hwgb6FHdFHSqRcWfewi+z63+z+aaMyTIpS6MInP5WzkYlZdt2pfIoyB8\r
+       9aPA==\r
+X-Gm-Message-State:\r
+ ALoCoQlvwhVnqZnav5peWOwLsQq7N/Kp/rqX/w4wG2ipNM31mauhRJHxK1+80pQGdqDaa3xWpRNB\r
+X-Received: by 10.15.75.9 with SMTP id k9mr210170eey.110.1396098149835;\r
+       Sat, 29 Mar 2014 06:02:29 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
+       [88.195.111.91])\r
+       by mx.google.com with ESMTPSA id w1sm18620674eel.16.2014.03.29.06.02.27\r
+       for <multiple recipients>\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Sat, 29 Mar 2014 06:02:28 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] RFC: impliment gzipped output for notmuch dump\r
+In-Reply-To: <87ob0pdw84.fsf@zancas.localnet>\r
+References: <874n2kipq4.fsf@qmul.ac.uk>\r
+       <1396056046-2247-1-git-send-email-david@tethera.net>\r
+       <87wqfdbblz.fsf@nikula.org> <87ob0pdw84.fsf@zancas.localnet>\r
+User-Agent: Notmuch/0.17+164~gcd5fd5a4837e (http://notmuchmail.org)\r
+       Emacs/24.3.1 (x86_64-pc-linux-gnu)\r
+Date: Sat, 29 Mar 2014 15:02:25 +0200\r
+Message-ID: <87txahb1jy.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 29 Mar 2014 13:02:40 -0000\r
+\r
+On Sat, 29 Mar 2014, David Bremner <david@tethera.net> wrote:\r
+> Jani Nikula <jani@nikula.org> writes:\r
+>\r
+>> Is it reasonable to require zlib? It's possible to have conditional\r
+>> build for this, but it will be laborous to do it cleanly. I could be\r
+>> persuaded either way, perhaps more easily to just requiring it.\r
+>\r
+> If I recall correctly, xapian needs zlib.  At least on Debian this is a\r
+> hard dependency. What is needed additionally is the zlib headers.\r
+\r
+Okay, no point in adding complexity in notmuch then.\r
+\r
+> I couldn't decide which was sillier: to have have gzipped output but not\r
+> input, or to leave off the command line argument (it's something like 3\r
+> lines of diff). I lean to making it accessible from the CLI to better\r
+> support testing.\r
+\r
+Testability is a good point; otherwise we'd have to add an extra tool\r
+for testing the interface, which is also silly. If we don't add restore\r
+support now, I think we can consider this a documentation issue.\r
+\r
+One more thing: do we need to ensure we don't emit gzipped stuff to the\r
+terminal?\r
+\r
+BR,\r
+Jani.\r