From fd998ac09fc253db66d0a427f7bcf5b449345476 Mon Sep 17 00:00:00 2001 From: Ethan Glasser-Camp Date: Tue, 26 Jun 2012 16:51:51 +2000 Subject: [PATCH] [RFC PATCH 08/14] Don't cache corpus.mail --- ff/2f24beee7374413b5cb5399cbc576d9c0be8bb | 89 +++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 ff/2f24beee7374413b5cb5399cbc576d9c0be8bb diff --git a/ff/2f24beee7374413b5cb5399cbc576d9c0be8bb b/ff/2f24beee7374413b5cb5399cbc576d9c0be8bb new file mode 100644 index 000000000..a1649e481 --- /dev/null +++ b/ff/2f24beee7374413b5cb5399cbc576d9c0be8bb @@ -0,0 +1,89 @@ +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 D8F9F431FB6 + for ; Mon, 25 Jun 2012 13:53:08 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 1.061 +X-Spam-Level: * +X-Spam-Status: No, score=1.061 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_BL_SPAMCOP_NET=1.246, + RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_SORBS_WEB=0.614] 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 FfFXTZjTxMKZ for ; + Mon, 25 Jun 2012 13:53:08 -0700 (PDT) +Received: from mail-we0-f181.google.com (mail-we0-f181.google.com + [74.125.82.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 2D406431FAF + for ; Mon, 25 Jun 2012 13:53:08 -0700 (PDT) +Received: by werj55 with SMTP id j55so3648782wer.26 + for ; Mon, 25 Jun 2012 13:53:07 -0700 (PDT) +DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; + h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; + bh=ynnJqcSWM7VHWdQex1QS3V8rra0xxKh4HdjkPbE/S1g=; + b=iCj1ZXyGh7Erwfxw1h51KqbFaRnJQ1zc+mILPsHAzRu5D8pCv3DU5mYOGNxhbUnCJF + tXJklBov0bu2jvdcLjcCKqbkIpwTLpsQPcFCPkqa6zhB5B8S2opWj3v4B4nyrLAe7jXz + Nn3XajyqV/k7ikeqgN/Vu9zR5ECXw6phpCXWC0oylICBeJ4XR6VLlIAKu/S6hhatf2v9 + /V0t/2Ufb6I4hBy0fDLme9fxAyBvmie1MhcAQ6iNFMod42NoE/pl24y5mZ5FXpnKaJgG + DJvxnaIzjAFRUIQTsz9seyDiqENw6s4LUHPFQtcnEaOlJFeIRb9klV7R0/4LmiAiE635 + kDww== +Received: by 10.180.79.166 with SMTP id k6mr27617417wix.8.1340657586944; + Mon, 25 Jun 2012 13:53:06 -0700 (PDT) +Received: from localhost ([195.24.209.21]) + by mx.google.com with ESMTPS id y2sm20602wix.7.2012.06.25.13.53.02 + (version=TLSv1/SSLv3 cipher=OTHER); + Mon, 25 Jun 2012 13:53:06 -0700 (PDT) +From: Ethan Glasser-Camp +To: notmuch@notmuchmail.org +Subject: [RFC PATCH 08/14] Don't cache corpus.mail +Date: Mon, 25 Jun 2012 16:51:51 -0400 +Message-Id: <1340657517-6539-4-git-send-email-ethan@betacantrips.com> +X-Mailer: git-send-email 1.7.9.5 +In-Reply-To: <1340657517-6539-1-git-send-email-ethan@betacantrips.com> +References: <1340657517-6539-1-git-send-email-ethan@betacantrips.com> +X-Mailman-Approved-At: Tue, 26 Jun 2012 03:51:54 -0700 +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: Mon, 25 Jun 2012 20:53:09 -0000 + +corpus.mail has already been processed by notmuch-new, so it seems +like a good target to cache, but since filenames are no longer being +stored relative to the database, it isn't. Recopy on each test, or +else filenames from other tests will show up. + +Signed-off-by: Ethan Glasser-Camp +--- + test/test-lib.sh | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/test/test-lib.sh b/test/test-lib.sh +index 195158c..def3760 100644 +--- a/test/test-lib.sh ++++ b/test/test-lib.sh +@@ -441,7 +441,7 @@ add_email_corpus () + else + cp -a $TEST_DIRECTORY/corpus ${MAIL_DIR} + notmuch new >/dev/null +- cp -a ${MAIL_DIR} $TEST_DIRECTORY/corpus.mail ++ #cp -a ${MAIL_DIR} $TEST_DIRECTORY/corpus.mail + fi + } + +-- +1.7.9.5 + -- 2.26.2