--- /dev/null
+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 arlo.cworth.org (Postfix) with ESMTP id 1273B6DE1479\r
+ for <notmuch@notmuchmail.org>; Wed, 23 Sep 2015 11:56:34 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.144\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.144 tagged_above=-999 required=5\r
+ tests=[AWL=-0.168, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01,\r
+ RCVD_IN_MSPIKE_WL=-0.01, URIBL_SBL=0.644, URIBL_SBL_A=0.1]\r
+ autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id QkI9UY90aOqt for <notmuch@notmuchmail.org>;\r
+ Wed, 23 Sep 2015 11:56:32 -0700 (PDT)\r
+Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com\r
+ [209.85.212.176])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id A60026DE143A\r
+ for <notmuch@notmuchmail.org>; Wed, 23 Sep 2015 11:56:31 -0700 (PDT)\r
+Received: by wiclk2 with SMTP id lk2so253472086wic.0\r
+ for <notmuch@notmuchmail.org>; Wed, 23 Sep 2015 11:56: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=mjHXvEYGY1ZJrd3UAFQ+gAa6xvbqx7Keg9XZwwfZ7k8=;\r
+ b=StEfazSstN8fSsUCbwfu2FzH2g2EK4S9CQ5gAgikiDEKFIc+imk7sV/PVwqtA4+pZc\r
+ mDGHA5TvABrn8TlwJWEy4u0RfGUTwQogNZKHM2ykToUaHHGtVI32b2YDnnKDxuqBDnv1\r
+ WCx92kLo6ZDLybNqUpgwzUb4ca1PNMkfFPvXx9al2aoLRekM5o0PjEvNRdiLgxNhY5bZ\r
+ bXU9ZrRicz4ADEs6Oih1dNpyWr7y33rFx5nEVAiDR+eqA6PDvNixXw3mxpBuesiOWgD0\r
+ iTFlqFdt+s1iTvL9gKg5T7MgRN3n5419nZyFOERTc5uiVsENqbtTlLgBX7jYWIE8qBvA\r
+ /l6w==\r
+X-Gm-Message-State:\r
+ ALoCoQmqIbfobOsIT837lbd5u5M4Rgjjy2Sa4HB6gLQff2VrUQ4ydF3a8nhxxysfmFjx1JXS/MGc\r
+X-Received: by 10.180.8.200 with SMTP id t8mr5756474wia.34.1443034589978;\r
+ Wed, 23 Sep 2015 11:56:29 -0700 (PDT)\r
+Received: from localhost (mobile-access-bcee4f-131.dhcp.inet.fi.\r
+ [188.238.79.131])\r
+ by smtp.gmail.com with ESMTPSA id ly4sm8643103wjb.4.2015.09.23.11.56.29\r
+ (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Wed, 23 Sep 2015 11:56:29 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH =?utf-8?Q?3=C2=BD=2F9=5D?= test: notmuch address\r
+ --deduplicate=no tests\r
+In-Reply-To: <87a8shtg4w.fsf@maritornes.cs.unb.ca>\r
+References:\r
+ <fd59eadee26a770097517bee038e2b126e11aa90.1441308761.git.jani@nikula.org>\r
+ <1441391716-17282-1-git-send-email-jani@nikula.org>\r
+ <87a8shtg4w.fsf@maritornes.cs.unb.ca>\r
+User-Agent: Notmuch/0.20.2+66~gb33abd9 (http://notmuchmail.org) Emacs/24.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Wed, 23 Sep 2015 21:56:11 +0300\r
+Message-ID: <87mvwddkxg.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.18\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: Wed, 23 Sep 2015 18:56:34 -0000\r
+\r
+On Sun, 20 Sep 2015, David Bremner <david@tethera.net> wrote:\r
+> Jani Nikula <jani@nikula.org> writes:\r
+>\r
+>> Test not using address deduplication. Incorporate some trivial output\r
+>> sorting tests here, as they seem to lack tests.\r
+>> ---\r
+>> test/T095-address.sh | 70 ++++++++++++++++++++++++++++++++++++++++++++++++++++\r
+>> 1 file changed, 70 insertions(+)\r
+>>\r
+>> diff --git a/test/T095-address.sh b/test/T095-address.sh\r
+>> index 8eecb2a6a7ba..f8d902cb3a5e 100755\r
+>> --- a/test/T095-address.sh\r
+>> +++ b/test/T095-address.sh\r
+>> @@ -145,4 +145,74 @@ cat <<EOF >EXPECTED\r
+>> EOF\r
+>> test_expect_equal_file OUTPUT EXPECTED\r
+>> \r
+>> +test_begin_subtest "--deduplicate=no --sort=oldest-first --output=sender"\r
+>> +notmuch address --deduplicate=no --sort=oldest-first --output=sender '*' >OUTPUT\r
+>> +cat <<EOF >EXPECTED\r
+>> +Mikhail Gusarov <dottedmag@dottedmag.net>\r
+>> +Mikhail Gusarov <dottedmag@dottedmag.net>\r
+>> +Carl Worth <cworth@cworth.org>\r
+>\r
+>> +\r
+>> +test_begin_subtest "--deduplicate=no --sort=newest-first --output=sender --output=recipients"\r
+>> +notmuch address --deduplicate=no --sort=newest-first --output=sender --output=recipients path:foo/new >OUTPUT\r
+>> +cat <<EOF >EXPECTED\r
+>> +Mikhail Gusarov <dottedmag@dottedmag.net>\r
+>> +notmuch@notmuchmail.org\r
+>> +Mikhail Gusarov <dottedmag@dottedmag.net>\r
+>\r
+> Two comments:\r
+>\r
+> 1) It's suprising that Mikail is first in both the newest-first and\r
+> oldest-first list. Is it easy to explain why?\r
+>\r
+> 2) the use of path: term is not mentioned in the description. Should it\r
+> be mentioned somehow?\r
+\r
+I wanted to have a smaller set of results in the second test, and path:\r
+was an easy filter so I could look at the files there to construct the\r
+expected results. That also explains the first part; it just so happened\r
+that the folder I arbitrarily picked happened to have Mikail there.\r
+\r
+BR,\r
+Jani.\r
+\r
+\r
+>\r
+> d\r