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 B0A8B6DE11B3 for ; Mon, 21 Aug 2017 08:45:02 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.311 X-Spam-Level: X-Spam-Status: No, score=-0.311 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211, SPF_PASS=-0.001] 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 CS3897H-rn4L for ; Mon, 21 Aug 2017 08:45:02 -0700 (PDT) Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by arlo.cworth.org (Postfix) with ESMTPS id 4DDDA6DE11D4 for ; Mon, 21 Aug 2017 08:45:01 -0700 (PDT) Received: by mail-wr0-f193.google.com with SMTP id p14so13041624wrg.1 for ; Mon, 21 Aug 2017 08:45:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=o+SNqCb5qykklDORqUhiPqIly60mdO5V/qTVuY/tlOg=; b=PIxx9d3svObnUumgqAdQvfjJbTrpqPtguHBolAQl3ZCdcn0KMrhIL6A9NhzDvuwt90 tIzmpLdqUykzN/qsD/SL5HAx+CIunsnKEcszwvAfhYX3SWrvOSKClKUozZflM4Dwwo88 SxqwAInXxDAi1j8Wagsx3Pbvsun5r5GdIsdwEWRezQUMB/EJ6p3kW064/ad0VT8UldT/ dStbo9UjyKXUJFs0AtX52JVYQ+cuZ/chB82PwmUwHS57xHb+sjWELcPm3Nvn+MK1hBHI Qm06QxCZlHU2mRrJZWuUiyxW8CHWGOUz+GJLpMYIcQOqXoBtP1eCzsX+114tH3KVKn/h L7Hg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=o+SNqCb5qykklDORqUhiPqIly60mdO5V/qTVuY/tlOg=; b=lMnek/ADtCzxBWodz0uPE20pmPwZU11tHX2goeGNGSFbU/V3ifU/voY+tmfhpngkYT 1B+8QUbLR9ByqoCgSVFGm64oD/fsWnCXG2joue8wmTwb2GKgVN1G+rCI0xjCt0eEtFJm R2pkOal4hL15Dt0PSrqkkXdCHGXaRsURulKxZMmN61rimyBWMf78ESNOJv2lFn6CUBoa F5ZDKgCk2n4yyGFE0IClMu7JUytq4S8rDaoQHPryYaJbakHpzECcB0C1zXfYrsoLp3UH //RosLAtevlM0ggFPYa3WB9MLi6RZHSIO4TpOL3mBaA9J+DS0ikInXwaEIcj7wfX90VE vtIQ== X-Gm-Message-State: AHYfb5iW3qWJv8799SSM1WWfsjydRM0dY9zluRQuLPXANyXrsGI/bd/9 K9ud1VdSsOC8FkQLBSE= X-Received: by 10.223.170.2 with SMTP id p2mr12472357wrd.22.1503330299678; Mon, 21 Aug 2017 08:44:59 -0700 (PDT) Received: from localhost (mito.neclab.eu. [195.37.70.39]) by smtp.gmail.com with ESMTPSA id v9sm6475976wmg.41.2017.08.21.08.44.59 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Aug 2017 08:44:59 -0700 (PDT) From: Yuri Volchkov To: notmuch@notmuchmail.org Subject: [PATCH v2 3/4] test: show id:<> works even if the first duplicate is deleted Date: Mon, 21 Aug 2017 17:44:47 +0200 Message-Id: <1503330288-9375-4-git-send-email-yuri.volchkov@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1503330288-9375-1-git-send-email-yuri.volchkov@gmail.com> References: <1502556453-11609-1-git-send-email-yuri.volchkov@gmail.com> <1503330288-9375-1-git-send-email-yuri.volchkov@gmail.com> 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: Mon, 21 Aug 2017 15:45:02 -0000 Signed-off-by: Yuri Volchkov --- test/T670-duplicate-mid.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/test/T670-duplicate-mid.sh b/test/T670-duplicate-mid.sh index ea5e1d6..f6f1602 100755 --- a/test/T670-duplicate-mid.sh +++ b/test/T670-duplicate-mid.sh @@ -37,4 +37,30 @@ notmuch reindex '*' notmuch search --output=files "sekrit" | notmuch_dir_sanitize > OUTPUT test_expect_equal_file EXPECTED OUTPUT +rm ${MAIL_DIR}/copy1 +test_begin_subtest 'Deleted first duplicate file does not stop notmuch show from working' +test_subtest_known_broken +output=$(notmuch show --body=false --format=json id:duplicate) +expected='[[[{ + "id": "'duplicate'", + "match": true, + "excluded": false, + "filename": [ + "'"${MAIL_DIR}"/copy1'", + "'"${MAIL_DIR}"/copy2'" + ], + "timestamp": 978709435, + "date_relative": "2001-01-05", + "tags": ["inbox","unread"], + "headers": { + "Subject": "message 2", + "From": "Notmuch Test Suite ", + "To": "Notmuch Test Suite ", + "Date": "Fri, 05 Jan 2001 15:43:55 +0000" + } + }, +[]]]]' + +test_expect_equal_json "$output" "$expected" + test_done -- 2.7.4