From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 539DF6DE0B78 for ; Tue, 26 Sep 2017 11:26:22 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.014 X-Spam-Level: X-Spam-Status: No, score=0.014 tagged_above=-999 required=5 tests=[AWL=0.034, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rm9ebtJnvTwF for ; Tue, 26 Sep 2017 11:26:21 -0700 (PDT) Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com [209.85.215.41]) by arlo.cworth.org (Postfix) with ESMTPS id F17416DE0C19 for ; Tue, 26 Sep 2017 11:26:20 -0700 (PDT) Received: by mail-lf0-f41.google.com with SMTP id a18so5404881lfl.13 for ; Tue, 26 Sep 2017 11:26:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=NXsRiWZUdpV2A8Vedytj728eMDMjBjCFVxmjwSW7Q98=; b=t71zufM2+3czKe/0qMnl08xqiskaRxcsv+c/xyiPr+9EApnolteuIL3N+UFnYeMUm1 BbkmXcD635FJ984bQ2Xqqw9zMzMz8zERfhcyCV++GnjgvU7bNudLDJ3gwDw69+Qr7XUE 7RQJyO9BXCl64TZlaTdK7cRmXtLQJdFXguEE9hinR7/Y93FJPNTVsIuyhPOvoZbQl+IS okNu5qik/+2TRCRFFOJ/EdjLqHLRYX2s1PbuNTl8TZLK0Vb6yo/P+pOP/LIHH0BVOo+W 6J55FKICHYS8/MVOZQ0Z0DntT3MTQ0IgvkyuYL9oFBELUKFs0Dj6K9QvM3nJy/BPutHi XpsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=NXsRiWZUdpV2A8Vedytj728eMDMjBjCFVxmjwSW7Q98=; b=g9hh3jLafitLrOBT3NmRjwquCnjCOBNz4Pbc8GcQ1foV6OFSx7F3RZctnkCK/5AA89 vqGWfwVM/AsPigmkAmuPJVvOvLbJUZ+4pTR1KUdtYUYBuaXkqSeKxejvPlo/QQoNpSd+ oSSpd4wVVhuKY2S8nlHV81x5qVloLs0VQWjmRajuPlwZzq0F3Q43+OXQvI33ePCiAaTa pNdKDQQIHEcx/PWqpioe8Joj5Fs9Wg5WGV4OKR+VYE03AMmWNu1/yqgr1cXCcuhrtfXP QGltC2gU0glxQW8uWv8tP41z8k7sIi+azLg4DoLwe14cvLUnQi+YsaHPTo+tprq1YTv4 SwlQ== X-Gm-Message-State: AHPjjUh8/JXikbnHwxJfElaySEGqvZGkWlEkuOm2NOiJ5wdl6ZWiCwVF w17c0e8S+SmQ0ugmNfaPYqdXvmTd9bY= X-Google-Smtp-Source: AOwi7QCdjd3ww55G6ov+8UQTVMi4J/EIoA7FFsB/S1SARKZCtHWEMEGi8+iQF7u7CP7MY8rgA3Fwkw== X-Received: by 10.25.99.23 with SMTP id x23mr3538427lfb.100.1506450379055; Tue, 26 Sep 2017 11:26:19 -0700 (PDT) Received: from localhost (mobile-access-5d6a60-234.dhcp.inet.fi. [93.106.96.234]) by smtp.gmail.com with ESMTPSA id 65sm1991597ljb.69.2017.09.26.11.26.18 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 26 Sep 2017 11:26:18 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH 1/2] test: add emacs reply test for subjects with TAB Date: Tue, 26 Sep 2017 21:26:07 +0300 Message-Id: <20170926182608.30115-2-jani@nikula.org> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170926182608.30115-1-jani@nikula.org> References: <20170926182608.30115-1-jani@nikula.org> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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: Tue, 26 Sep 2017 18:26:22 -0000 Expect TABs to be sanitized from the subject line. Known broken. --- test/T310-emacs.sh | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/test/T310-emacs.sh b/test/T310-emacs.sh index fde11790a600..2ef566bac490 100755 --- a/test/T310-emacs.sh +++ b/test/T310-emacs.sh @@ -401,6 +401,29 @@ Notmuch Test Suite writes: EOF test_expect_equal_file EXPECTED OUTPUT +test_begin_subtest "Reply within emacs to a message with TAB in subject" +test_subtest_known_broken +test_emacs '(let ((message-hidden-headers ''())) + (notmuch-search "id:1258471718-6781-1-git-send-email-dottedmag@dottedmag.net") + (notmuch-test-wait) + (notmuch-search-show-thread) + (notmuch-test-wait) + (notmuch-show-reply-sender) + (test-output))' +sed -i -e 's/^In-Reply-To: <.*>$/In-Reply-To: /' OUTPUT +sed -i -e 's/^References: <.*>$/References: /' OUTPUT +sed -i -e '/^--text follows this line--$/q' OUTPUT +cat <EXPECTED +From: Notmuch Test Suite +To: Mikhail Gusarov +Subject: Re: [notmuch] [PATCH 1/2] Close message file after parsing message headers +In-Reply-To: +Fcc: ${MAIL_DIR}/sent +References: +--text follows this line-- +EOF +test_expect_equal_file EXPECTED OUTPUT + test_begin_subtest "Reply from alternate address within emacs" add_message '[from]="Sender "' \ [to]=test_suite_other@notmuchmail.org -- 2.11.0