From: Austin Clements Date: Mon, 6 Oct 2014 23:17:16 +0000 (+1800) Subject: [PATCH v2 10/12] lib: Enable ghost messages feature X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3f0f39543fc025daa525d4fd1b6eaf9946bb8c59;p=notmuch-archives.git [PATCH v2 10/12] lib: Enable ghost messages feature --- diff --git a/dc/dfcfc6b910fa3d4a240584e48492f828d1da69 b/dc/dfcfc6b910fa3d4a240584e48492f828d1da69 new file mode 100644 index 000000000..4abaf35a9 --- /dev/null +++ b/dc/dfcfc6b910fa3d4a240584e48492f828d1da69 @@ -0,0 +1,110 @@ +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 C820B431FBD + for ; Mon, 6 Oct 2014 16:17:43 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -2.3 +X-Spam-Level: +X-Spam-Status: No, score=-2.3 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_MED=-2.3] 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 GCn2NIVYiosw for ; + Mon, 6 Oct 2014 16:17:42 -0700 (PDT) +Received: from dmz-mailsec-scanner-2.mit.edu (dmz-mailsec-scanner-2.mit.edu + [18.9.25.13]) + (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id AF001431FC4 + for ; Mon, 6 Oct 2014 16:17:31 -0700 (PDT) +X-AuditID: 1209190d-f79c06d000006f95-0f-5433230bafe1 +Received: from mailhub-auth-4.mit.edu ( [18.7.62.39]) + (using TLS with cipher AES256-SHA (256/256 bits)) + (Client did not present a certificate) + by dmz-mailsec-scanner-2.mit.edu (Symantec Messaging Gateway) with SMTP + id 74.74.28565.B0323345; Mon, 6 Oct 2014 19:17:31 -0400 (EDT) +Received: from outgoing.mit.edu (outgoing-auth-1.mit.edu [18.9.28.11]) + by mailhub-auth-4.mit.edu (8.13.8/8.9.2) with ESMTP id s96NHTqm032099; + Mon, 6 Oct 2014 19:17:30 -0400 +Received: from drake.dyndns.org ([12.185.136.2]) (authenticated bits=0) + (User authenticated as amdragon@ATHENA.MIT.EDU) + by outgoing.mit.edu (8.13.8/8.12.4) with ESMTP id s96NHRW1014553 + (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); + Mon, 6 Oct 2014 19:17:29 -0400 +Received: from amthrax by drake.dyndns.org with local (Exim 4.84) + (envelope-from ) + id 1XbHWs-0001Ju-9R; Mon, 06 Oct 2014 17:17:22 -0600 +From: Austin Clements +To: notmuch@notmuchmail.org +Subject: [PATCH v2 10/12] lib: Enable ghost messages feature +Date: Mon, 6 Oct 2014 17:17:16 -0600 +Message-Id: <1412637438-4821-11-git-send-email-aclements@csail.mit.edu> +X-Mailer: git-send-email 2.1.0 +In-Reply-To: <1412637438-4821-1-git-send-email-aclements@csail.mit.edu> +References: <1412637438-4821-1-git-send-email-aclements@csail.mit.edu> +X-Brightmail-Tracker: + H4sIAAAAAAAAA+NgFtrHIsWRmVeSWpSXmKPExsUixG6nrsutbBxi0HBR3uJGazejxfWbM5kd + mDyerbrF7LHl0HvmAKYoLpuU1JzMstQifbsErowZs/8yF7RzV1zZ9p+pgXEiZxcjJ4eEgInE + xK+XWSBsMYkL99azdTFycQgJzGaS+LYWJAHibGCU6L9wA8pZyiTRNncqlLOEUWLG8hvsIP1s + AvoSK9ZOYgWxRQSkJXbenQ1mMwtYSlz92s4EYgsL2Ehcu9PNDGKzCKhK3Dt8H6yGV8Bd4u+y + I4wQd8hJbNj9H8zmBIqvuTIZrEZIwE3i+c+nLBMY+RcwMqxilE3JrdLNTczMKU5N1i1OTszL + Sy3SNdLLzSzRS00p3cQICiZOSd4djO8OKh1iFOBgVOLhjdhhGCLEmlhWXJl7iFGSg0lJlHcO + u3GIEF9SfkplRmJxRnxRaU5q8SFGCQ5mJRFert9GIUK8KYmVValF+TApaQ4WJXHeTT/4QoQE + 0hNLUrNTUwtSi2CyMhwcShK8xkpAQwWLUtNTK9Iyc0oQ0kwcnCDDeYCG/1MEquEtLkjMLc5M + h8ifYlSUEucNBkkIgCQySvPgemHR/opRHOgVYd4gkBU8wEQB1/0KaDAT0GDTOfogg0sSEVJS + DYwlhx7N+1upnXrk2xkpsf9r/wo+Ef648GZQfpjBOc44q4tOj9g3xJSlt3Xfc3ilp9iVushG + 4O7KWT8EBfWCjebNlj9n/u7VIc++oG/XGG0eTwmbp2q7STH7/HbNj/v+lJyLmvnpvNLUz/sZ + uYwf6qTNtV+ybC3nGYaCXrd7ibvmcM6vuryfodhEiaU4I9FQi7moOBEANARfk9ECAAA= +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, 06 Oct 2014 23:17:44 -0000 + +From: Austin Clements + +This fixes the broken thread order test. +--- + lib/database-private.h | 2 +- + test/T260-thread-order.sh | 1 - + 2 files changed, 1 insertion(+), 2 deletions(-) + +diff --git a/lib/database-private.h b/lib/database-private.h +index e2e4bc8..15e03cc 100644 +--- a/lib/database-private.h ++++ b/lib/database-private.h +@@ -166,7 +166,7 @@ struct _notmuch_database { + * databases will have it). */ + #define NOTMUCH_FEATURES_CURRENT \ + (NOTMUCH_FEATURE_FILE_TERMS | NOTMUCH_FEATURE_DIRECTORY_DOCS | \ +- NOTMUCH_FEATURE_BOOL_FOLDER) ++ NOTMUCH_FEATURE_BOOL_FOLDER | NOTMUCH_FEATURE_GHOSTS) + + /* Return the list of terms from the given iterator matching a prefix. + * The prefix will be stripped from the strings in the returned list. +diff --git a/test/T260-thread-order.sh b/test/T260-thread-order.sh +index b435d79..99f5833 100755 +--- a/test/T260-thread-order.sh ++++ b/test/T260-thread-order.sh +@@ -30,7 +30,6 @@ expected=$(for ((i = 0; i < $nthreads; i++)); do + test_expect_equal "$output" "$expected" + + test_begin_subtest "Messages with all parents get linked in all delivery orders" +-test_subtest_known_broken + # Here we do the same thing as the previous test, but each message + # references all of its parents. Since every message references the + # root of the thread, each thread should always be fully joined. This +-- +2.1.0 +