Re: [PATCH v2 2/2] test: Add test for correct naming of author.
authorJani Nikula <jani@nikula.org>
Sat, 22 Nov 2014 11:31:04 +0000 (13:31 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:46:49 +0000 (14:46 -0700)
c8/3987a6b57848c1ab1fbb2df49aabb46101eea2 [new file with mode: 0644]

diff --git a/c8/3987a6b57848c1ab1fbb2df49aabb46101eea2 b/c8/3987a6b57848c1ab1fbb2df49aabb46101eea2
new file mode 100644 (file)
index 0000000..5e0c763
--- /dev/null
@@ -0,0 +1,112 @@
+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 1D215431FBF\r
+       for <notmuch@notmuchmail.org>; Sat, 22 Nov 2014 03:31:13 -0800 (PST)\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 BlX87GIVQd8Y for <notmuch@notmuchmail.org>;\r
+       Sat, 22 Nov 2014 03:31:09 -0800 (PST)\r
+Received: from mail-wi0-f176.google.com (mail-wi0-f176.google.com\r
+       [209.85.212.176]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 8F338431FBC\r
+       for <notmuch@notmuchmail.org>; Sat, 22 Nov 2014 03:31:09 -0800 (PST)\r
+Received: by mail-wi0-f176.google.com with SMTP id ex7so1585320wid.9\r
+       for <notmuch@notmuchmail.org>; Sat, 22 Nov 2014 03:31:08 -0800 (PST)\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=i+lBpNygSjsO4VCBmuo/aSYo0tt2gmCP3SHsrLMaLD8=;\r
+       b=kx1hZnupSQ0IXsMcWndSdMrjiODtpaeeEVBrELEN+fwQA/5Mqaju26CzUcHPgn0wGk\r
+       7qPeqITbdTrym3B/DZyJu5lsSCBFhJalLC+DV5FtJE2511DfKGS12kE3uPNrn5XQ21BH\r
+       FhNhRQeRWdQG4wru6juKtdAqtB+cQ7BvuqB5cRb4QTgYZaeelPukAbJBj+qSZj9eaUCQ\r
+       9lWsVxPH2PnhO4jdt4lon0jJitub1GrTFR3VWcHyXCqnJCawF/TiUSTzCfuVVwdRM2+4\r
+       rqHh+8cxwawuQiHSIdw+Yt5DiM3eR0Uyq/O2vDVSDFlxxNtyZqt20GLC1An+K3ac58uO\r
+       eB0w==\r
+X-Gm-Message-State:\r
+ ALoCoQnm8B5RoSGjBvtUHVYQOgwW5BAAneN7cLX1fmBJwkv5VoOpbjDSqrbZ7A6ShzZuvV2TqV1i\r
+X-Received: by 10.194.6.227 with SMTP id e3mr16453776wja.107.1416655868455;\r
+       Sat, 22 Nov 2014 03:31:08 -0800 (PST)\r
+Received: from localhost (dsl-hkibrasgw2-58c362-144.dhcp.inet.fi.\r
+       [88.195.98.144]) by mx.google.com with ESMTPSA id\r
+       kn5sm11826804wjb.48.2014.11.22.03.31.07 for <multiple recipients>\r
+       (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+       Sat, 22 Nov 2014 03:31:07 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Jesse Rosenthal <jrosenthal@jhu.edu>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH v2 2/2] test: Add test for correct naming of author.\r
+In-Reply-To: <1416585462-24558-3-git-send-email-jrosenthal@jhu.edu>\r
+References: <1416585462-24558-1-git-send-email-jrosenthal@jhu.edu>\r
+       <1416585462-24558-3-git-send-email-jrosenthal@jhu.edu>\r
+User-Agent: Notmuch/0.19+1~gcffa3cf (http://notmuchmail.org) Emacs/24.4.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Sat, 22 Nov 2014 13:31:04 +0200\r
+Message-ID: <87mw7jqxon.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, 22 Nov 2014 11:31:13 -0000\r
+\r
+On Fri, 21 Nov 2014, Jesse Rosenthal <jrosenthal@jhu.edu> wrote:\r
+> This is a new test file, since handling of unusual email addresses\r
+> doesn't seem to fit well in any of our existing tests.\r
+\r
+It would be nice to have this as patch 1/2 annotated with "known broken"\r
+and have the implementation patch fix it. It's nice to see that the\r
+patch actually changes things! ;)\r
+\r
+BR,\r
+Jani.\r
+\r
+>\r
+> Signed-off-by: Jesse Rosenthal <jrosenthal@jhu.edu>\r
+> ---\r
+>  test/T205-author-naming.sh | 12 ++++++++++++\r
+>  1 file changed, 12 insertions(+)\r
+>  create mode 100755 test/T205-author-naming.sh\r
+>\r
+> diff --git a/test/T205-author-naming.sh b/test/T205-author-naming.sh\r
+> new file mode 100755\r
+> index 0000000..cb678ae\r
+> --- /dev/null\r
+> +++ b/test/T205-author-naming.sh\r
+> @@ -0,0 +1,12 @@\r
+> +#!/usr/bin/env bash\r
+> +test_description="naming of authors with unusual addresses"\r
+> +. ./test-lib.sh\r
+> +\r
+> +test_begin_subtest "Add author with empty quoted real name"\r
+> +add_message '[subject]="author-naming: Initial thread subject"' \\r
+> +        '[date]="Fri, 05 Jan 2001 15:43:56 -0000"' \\r
+> +        '[from]="\"\" <address@example.com>"'\r
+> +output=$(notmuch search --sort=oldest-first author-naming and tag:inbox | notmuch_search_sanitize)\r
+> +test_expect_equal "$output" "thread:XXX   2001-01-05 [1/1] address@example.com; author-naming: Initial thread subject (inbox unread)"\r
+> +\r
+> +test_done\r
+> -- \r
+> 2.1.3\r
+>\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r