From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CLqxLOnY3mBRxAAAgWs5BA (envelope-from ) for ; Fri, 02 Jul 2021 11:14:17 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id cBNeKOnY3mD4PQAAbx9fmQ (envelope-from ) for ; Fri, 02 Jul 2021 09:14:17 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id D8F4B1D675 for ; Fri, 2 Jul 2021 11:14:16 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id EE79327D92; Fri, 2 Jul 2021 05:14:11 -0400 (EDT) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) by mail.notmuchmail.org (Postfix) with ESMTPS id 26288271CA for ; Fri, 2 Jul 2021 05:14:09 -0400 (EDT) Received: by mail-lf1-f51.google.com with SMTP id a11so16848528lfg.11 for ; Fri, 02 Jul 2021 02:14:09 -0700 (PDT) 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:mime-version:content-transfer-encoding; bh=j4KZ4yZxGcRu8h3I1m64CgmF+wVjyfdo1Ay1VC4pNXA=; b=keILvU3sXYE+QZ/Zmn/9do/YsOUxqi0lOBU8zpQiwWloTSzjz8JN3DcrUz+mXGeEXR sTh8WocUkd8QpjJfvxwY3n0Iay0nkaquI33a1hApkarzqt7qs2IaDhwZpH55Vkzanotd aRCktvVr5xm5BHjKZP0CF7l+Rv3g3MTHnl7bgls8t14pTX8PnOpRYQJGtLdPmAHFCY4u L0GBocijd4XfM6FncbOLlNFNWmy07Wd+cxwDUSrN9XN0Tg7mH7bj5AIgjLZROAErRMxE GkQcQvGT/ApKcxdv/HvOEiAf2K3R9VbxUkuwrb7n0ucesXslgKdmFr7TTeZHNrQD+l2C 3cmg== X-Gm-Message-State: AOAM5323M2bTZJ5Lx2HTggZOly6FiW1N1XsYqZa93UHdkpcKd9c238fi 3cuOqFoEhUsuxHuaS+kCEQl2Inf27frpxA== X-Google-Smtp-Source: ABdhPJxShDBLxOF42AlFwTA0dBGtNnIV2lnX2tNziJdssDi4JUQp5u9xmUkDon8yWviyZZEfcQeOTw== X-Received: by 2002:a05:6512:1291:: with SMTP id u17mr3112787lfs.300.1625217247269; Fri, 02 Jul 2021 02:14:07 -0700 (PDT) Received: from localhost (88-112-11-80.elisa-laajakaista.fi. [88.112.11.80]) by smtp.gmail.com with ESMTPSA id b19sm299196ljo.37.2021.07.02.02.14.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Jul 2021 02:14:06 -0700 (PDT) From: Hannu Hartikainen To: notmuch@notmuchmail.org Subject: [PATCH v2 1/2] reply: add test for multiple Delivered-To headers Date: Fri, 2 Jul 2021 12:13:08 +0300 Message-Id: <20210702091309.26970-1-hannu@hrtk.in> X-Mailer: git-send-email 2.32.0 In-Reply-To: <874kdkzfxk.fsf@tethera.net> References: <874kdkzfxk.fsf@tethera.net> MIME-Version: 1.0 Message-ID-Hash: NMEZE23BOXS3TSMBDQKMTYG653KSU6RC X-Message-ID-Hash: NMEZE23BOXS3TSMBDQKMTYG653KSU6RC X-MailFrom: hannu.hartikainen@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header CC: Hannu Hartikainen X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625217257; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=IyFscGD0woU9DqWmURL+qKXLO1wWySVaFqDqEoGtry0=; b=Jr+1SE4AxlpNzQ8ybxRYHjxM4DCIzZXETYQzRhZR1r0F3tXfMDpqgWptQgQzQUjEYhq+Bq qHDBovKrYb32dGUVsc+O6wfIdkfbnZUI1iTgi4GyCmvrRftNeSeZdbL/82EL8fFb930igH TRpeB6V45ce6cWdJCvr8T+CP3PtBBeOSnJSldPLAtJEMqAOAPh3vOMr8xc3TRoe1HFWSrS S50c/XK2MeChLlO18aJ2zE7MdR6MClKDgjc3/pFhzqBR5h6mJu40Cwf431sL1XHA+Uwi7e /CqLZxJoI6fBmgOx2tzfewayGgvLKONCFfa2ly+tBCbj8f9sAv+unmhoJz5NyQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625217257; a=rsa-sha256; cv=none; b=DTLHo0vZT8kYoGl40v1kgbidnYJ/Lc1p/KkAgBJK8OG8O55Diaa1pBCDzc4HzNSzV8wp2m H3F5Qq1HQ7T1MfVEZA17LiyAfS6ILYDQxI4shMs5zHTJmEUGf2QKHkOaVvODb+IpFEy+0t yEnVwWYfd4af2REX4HU9cm7rAFP2c0fQlS2LJXfq8frLUhF/G9Pk6K9XtZs2kUT+zgMOHi 8G+Ayjv5voe2b6iUv88zmuAsyk0y4X6JEihJhpKzCuRGos45upDHVndK7UFE00JtnIU2N6 uk1C21dP1bPFyPXXeQh2gFAriyizXj7LnjJHcr1SUKVlubpLVG7m6id0gnFmug== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -1.02 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: D8F4B1D675 X-Spam-Score: -1.02 X-Migadu-Scanner: scn0.migadu.com X-TUID: hGQbe1wFfq8J Add a known broken subtest for guessing From: correctly when there are multiple Delivered-To: headers. The address configured as primary_email should get picked. --- test/T220-reply.sh | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/test/T220-reply.sh b/test/T220-reply.sh index b6d8f42a..9f711a04 100755 --- a/test/T220-reply.sh +++ b/test/T220-reply.sh @@ -245,6 +245,27 @@ On Tue, 05 Jan 2010 15:43:56 -0000, Sender wrote: > From guessing OK" +test_begin_subtest "From guessing: multiple Delivered-To" +test_subtest_known_broken +add_message '[from]="Sender "' \ + '[to]="Recipient "' \ + '[subject]="From guessing"' \ + '[date]="Tue, 05 Jan 2010 15:43:56 -0000"' \ + '[body]="From guessing"' \ + '[header]="Delivered-To: test_suite_other@notmuchmail.org +Delivered-To: test_suite@notmuchmail.org"' + +output=$(notmuch reply id:${gen_msg_id} 2>&1 && echo OK) +test_expect_equal "$output" "From: Notmuch Test Suite +Subject: Re: From guessing +To: Sender , Recipient +In-Reply-To: <${gen_msg_id}> +References: <${gen_msg_id}> + +On Tue, 05 Jan 2010 15:43:56 -0000, Sender wrote: +> From guessing +OK" + test_begin_subtest "Reply with RFC 2047-encoded headers" add_message '[subject]="=?iso-8859-1?q?=e0=df=e7?="' \ '[from]="=?utf-8?q?=e2=98=83?= "' \ @@ -281,7 +302,7 @@ test_expect_equal_json "$output" ' "crypto": {}, "date_relative": "2010-01-05", "excluded": false, - "filename": ["'${MAIL_DIR}'/msg-014"], + "filename": ["'${MAIL_DIR}'/msg-015"], "headers": { "Date": "Tue, 05 Jan 2010 15:43:56 +0000", "From": "\u2603 ", -- 2.32.0