--- /dev/null
+Return-Path: <bgamari.foss@gmail.com>\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 71459431FC4\r
+ for <notmuch@notmuchmail.org>; Wed, 30 Oct 2013 21:10:10 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_FROM=0.001, 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 trQe4N74x9W4 for <notmuch@notmuchmail.org>;\r
+ Wed, 30 Oct 2013 21:10:06 -0700 (PDT)\r
+Received: from mail-qa0-f46.google.com (mail-qa0-f46.google.com\r
+ [209.85.216.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 05B8D431FC2\r
+ for <notmuch@notmuchmail.org>; Wed, 30 Oct 2013 21:10:05 -0700 (PDT)\r
+Received: by mail-qa0-f46.google.com with SMTP id j15so4243250qaq.5\r
+ for <notmuch@notmuchmail.org>; Wed, 30 Oct 2013 21:10:03 -0700 (PDT)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:subject:in-reply-to:references:user-agent:date:message-id\r
+ :mime-version:content-type;\r
+ bh=aoUHqBCu/QG50sSwZaf+RK0XZTE6wL3kmoOcgJ1gcQ0=;\r
+ b=oBo76EQX+IZDhkb+cEcYJTNxXNnTVyzRW5w2MUgw5aMgHx43lIS/aSfQp+FWB2MHtU\r
+ QqC+cg0FdhJ5lQ++PTowwD1M/bs4Zz6Rpqp1RhhfcOPrTOmrKQz1nblyHDTfj2bafCxA\r
+ h6J/YCoBlvwaP01grLz0XaJc5h8xM7E5hVLLRgRnfYAMncpYfhX+Zi3hZAhEadBKwdSQ\r
+ VGZgcHVZLVWIQcA7ouUvcEjXVh2vnxIgp+OZlt+1G/FterTI7jL4zLqGYnHsc7TppJvh\r
+ A5+fg+fUKksaKdxbZeG8btmgH7mywolr6ryRPUIWHsQluRqBKuinaLc2/u/efJ339IXR\r
+ ClZw==\r
+X-Received: by 10.224.32.66 with SMTP id b2mr2414766qad.80.1383192603354;\r
+ Wed, 30 Oct 2013 21:10:03 -0700 (PDT)\r
+Received: from localhost (pool-96-240-254-51.spfdma.east.verizon.net.\r
+ [96.240.254.51])\r
+ by mx.google.com with ESMTPSA id r1sm5126596qam.4.2013.10.30.21.10.01\r
+ for <multiple recipients>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Wed, 30 Oct 2013 21:10:02 -0700 (PDT)\r
+From: Ben Gamari <bgamari.foss@gmail.com>\r
+To: Tomi Ollila <tomi.ollila@iki.fi>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH 1/4] test: Add compact test\r
+In-Reply-To: <m24n80qqy2.fsf@guru.guru-group.fi>\r
+References: <1382998997-9938-1-git-send-email-bgamari.foss@gmail.com>\r
+ <m24n80qqy2.fsf@guru.guru-group.fi>\r
+User-Agent: Notmuch/0.16+107~g1ef2773 (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Thu, 31 Oct 2013 00:10:00 -0400\r
+Message-ID: <87r4b2hyhz.fsf@gmail.com>\r
+MIME-Version: 1.0\r
+Content-Type: multipart/signed; boundary="=-=-=";\r
+ micalg=pgp-sha1; protocol="application/pgp-signature"\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: Thu, 31 Oct 2013 04:10:10 -0000\r
+\r
+--=-=-=\r
+Content-Type: text/plain\r
+Content-Transfer-Encoding: quoted-printable\r
+\r
+Tomi Ollila <tomi.ollila@iki.fi> writes:\r
+\r
+> On Tue, Oct 29 2013, Ben Gamari <bgamari.foss@gmail.com> wrote:\r
+>\r
+>> Signed-off-by: Ben Gamari <bgamari.foss@gmail.com>\r
+>> ---\r
+>\r
+> Patches 2, 3 & 4 Looks OK To Me. Thanks. A few comments on this patch=20\r
+> inline:\r
+>\r
+Thanks again for the review!\r
+\r
+>> test/compact | 35 +++++++++++++++++++++++++++++++++++\r
+>> test/notmuch-test | 1 +\r
+>> 2 files changed, 36 insertions(+)\r
+>> create mode 100755 test/compact\r
+>>\r
+>> diff --git a/test/compact b/test/compact\r
+>> new file mode 100755\r
+>> index 0000000..54e85ab\r
+>> --- /dev/null\r
+>> +++ b/test/compact\r
+>> @@ -0,0 +1,35 @@\r
+>> +#!/usr/bin/env bash\r
+>> +test_description=3D'"notmuch compact"'\r
+>> +. ./test-lib.sh\r
+>> +\r
+>> +add_message '[subject]=3DOne'\r
+>> +add_message '[subject]=3DTwo'\r
+>> +add_message '[subject]=3DThree'\r
+>> +\r
+>> +notmuch tag +tag1 \*\r
+>> +notmuch tag +tag2 subject:Two\r
+>> +notmuch tag -tag1 +tag3 subject:Three\r
+>> +\r
+>> +test_begin_subtest "Compacting"\r
+>> +notmuch compact\r
+>> +test_expect_success "compact" "notmuch compact"\r
+>\r
+> test_expect_success executes "$2" ("notmuch compact" in this case)\r
+> do you mean to run notmuch 'compact twice' ?\r
+>\r
+It's been a while but I suspect I just never cleaned up the patch after\r
+coming to this realization. Anyways, it's fixed in the revised patch\r
+coming shortly.\r
+\r
+>> +notmuch search \*\r
+>> +output=3D$(notmuch search \* | notmuch_search_sanitize)\r
+>\r
+> Now do you mean to run 'notmuch search \*' twice ?\r
+>\r
+>> +test_expect_equal "$output" "\\r
+>> +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; One (inbox tag1 unrea=\r
+d)\r
+>> +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Two (inbox tag1 tag2 =\r
+unread)\r
+>> +thread:XXX 2001-01-05 [1/1] Notmuch Test Suite; Three (inbox tag3 unr=\r
+ead)"\r
+>> +\r
+>> +test_begin_subtest "Restoring backup"\r
+>> +rm -Rf ${TEST_TMPDIR}/mail/xapian\r
+>> +mv ${TEST_TMPDIR}/mail/xapian.old ${TEST_TMPDIR}/mail/xapian\r
+>> +\r
+>> +notmuch search \*\r
+>> +output=3D$(notmuch search \* | notmuch_search_sanitize)\r
+>\r
+> again... ?\r
+>\r
+>\r
+> ... actually David Bremner had even more insightful comments in=20\r
+> id:874n8cw2yq.fsf@zancas.localnet to these same issues :D\r
+>\r
+Hmm, it seems I overlooked these. Thanks for the reference.\r
+\r
+Cheers,\r
+\r
+=2D Ben\r
+\r
+--=-=-=\r
+Content-Type: application/pgp-signature\r
+\r
+-----BEGIN PGP SIGNATURE-----\r
+Version: GnuPG v1.4.14 (GNU/Linux)\r
+\r
+iQEcBAEBAgAGBQJScdgYAAoJEErkyLZmeNiDPSoH+wRC+gErdvsUW8Cwp2WmhfCf\r
+sHgZv6xrmvDHiVmkzfyf0vlf9XVyVIV3swTb1pzI0vb1DtGzdagOX7LR6nAb0+bK\r
+D6ulf+EKCsk5vy4wdaTcQcYEFY6WWXzH3/sWR1MUkN0h+5+R9xm1r1CBsoviioHt\r
+CFhkF/GdRsTHi0yczh7ifCXqNWGJav1PtrRLzBTlA8XtT96f0JtBpO+LJxtIwJYB\r
+knMAMdeObXd7oeqJ+LApglSOOMzKtkboKV8u2G8FKtEgVSCcue/KV+jJ/3wIFmxL\r
+ryDdwuKsGvfFogtZt7n/Xp7dUFI5TIn1sRs3iABH09IJxFClG4YWU/sY5W5bVus=\r
+=MsP5\r
+-----END PGP SIGNATURE-----\r
+--=-=-=--\r