From 707c5d2c56bbe55ea02b383b75bdd712fe518c93 Mon Sep 17 00:00:00 2001 From: Jesse Rosenthal Date: Sun, 23 Nov 2014 08:17:15 +1900 Subject: [PATCH] [PATCH v3 1/2] test: Add known-broken test for empty author name --- c9/9d2d2a8fa7ff93fa1cc157fe642ac8748232bc | 87 +++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 c9/9d2d2a8fa7ff93fa1cc157fe642ac8748232bc diff --git a/c9/9d2d2a8fa7ff93fa1cc157fe642ac8748232bc b/c9/9d2d2a8fa7ff93fa1cc157fe642ac8748232bc new file mode 100644 index 000000000..753a44bbb --- /dev/null +++ b/c9/9d2d2a8fa7ff93fa1cc157fe642ac8748232bc @@ -0,0 +1,87 @@ +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 19506431FBF + for ; Sat, 22 Nov 2014 05:17:04 -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 Cm31Qriht1Wz for ; + Sat, 22 Nov 2014 05:16:56 -0800 (PST) +Received: from smtpauth.johnshopkins.edu (smtpauth.johnshopkins.edu + [128.220.229.167]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 724D8431FBC + for ; Sat, 22 Nov 2014 05:16:56 -0800 (PST) +X-IronPort-AV: E=Sophos;i="5.07,437,1413259200"; d="scan'208";a="497023046" +Received: from c-69-137-43-192.hsd1.md.comcast.net (HELO localhost) + ([69.137.43.192]) + by IPMTW3.johnshopkins.edu with ESMTP/TLS/AES128-SHA; + 22 Nov 2014 08:16:54 -0500 +From: Jesse Rosenthal +To: notmuch@notmuchmail.org +Subject: [PATCH v3 1/2] test: Add known-broken test for empty author name +Date: Sat, 22 Nov 2014 08:17:15 -0500 +Message-Id: <1416662236-26556-2-git-send-email-jrosenthal@jhu.edu> +X-Mailer: git-send-email 2.1.3 +In-Reply-To: <1416662236-26556-1-git-send-email-jrosenthal@jhu.edu> +References: <1416662236-26556-1-git-send-email-jrosenthal@jhu.edu> +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: Sat, 22 Nov 2014 13:17:04 -0000 + +We test for whether a quoted empty email address + + "" + +will show up as the address, instead of the empty string. This is +marked as known-broken, since the current behavior is to use the empty +string. + +This is a new test file, since handling of unusual email addresses +doesn't seem to fit well in any of our existing tests. + +Signed-off-by: Jesse Rosenthal +--- + test/T205-author-naming.sh | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + create mode 100755 test/T205-author-naming.sh + +diff --git a/test/T205-author-naming.sh b/test/T205-author-naming.sh +new file mode 100755 +index 0000000..18819dd +--- /dev/null ++++ b/test/T205-author-naming.sh +@@ -0,0 +1,13 @@ ++#!/usr/bin/env bash ++test_description="naming of authors with unusual addresses" ++. ./test-lib.sh ++ ++test_begin_subtest "Add author with empty quoted real name" ++test_subtest_known_broken ++add_message '[subject]="author-naming: Initial thread subject"' \ ++ '[date]="Fri, 05 Jan 2001 15:43:56 -0000"' \ ++ '[from]="\"\" "' ++output=$(notmuch search --sort=oldest-first author-naming and tag:inbox | notmuch_search_sanitize) ++test_expect_equal "$output" "thread:XXX 2001-01-05 [1/1] address@example.com; author-naming: Initial thread subject (inbox unread)" ++ ++test_done +-- +2.1.3 + -- 2.26.2