From 5a965482ef51d7087d44a77e36d202a75446ce27 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Fri, 25 Sep 2015 23:48:43 +0300 Subject: [PATCH] [PATCH 0/3] delete directory documents on directory removal --- 6b/2b1e476795aa45020940b0edb20c616184beca | 87 +++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 6b/2b1e476795aa45020940b0edb20c616184beca diff --git a/6b/2b1e476795aa45020940b0edb20c616184beca b/6b/2b1e476795aa45020940b0edb20c616184beca new file mode 100644 index 000000000..4cfc3b302 --- /dev/null +++ b/6b/2b1e476795aa45020940b0edb20c616184beca @@ -0,0 +1,87 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 445D96DE0924 + for ; Fri, 25 Sep 2015 13:49:10 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.525 +X-Spam-Level: +X-Spam-Status: No, score=-0.525 tagged_above=-999 required=5 tests=[AWL=0.195, + RCVD_IN_DNSWL_LOW=-0.7, 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 HB82hHLFZ4Im for ; + Fri, 25 Sep 2015 13:49:08 -0700 (PDT) +Received: from mail-wi0-f180.google.com (mail-wi0-f180.google.com + [209.85.212.180]) + by arlo.cworth.org (Postfix) with ESMTPS id 0951A6DE02D2 + for ; Fri, 25 Sep 2015 13:49:07 -0700 (PDT) +Received: by wicfx3 with SMTP id fx3so36931139wic.1 + for ; Fri, 25 Sep 2015 13:49:06 -0700 (PDT) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:date:message-id; + bh=pGVd+wXtLf28zrUCj6l/+ENJaERj0QNesKm46rjJRFo=; + b=j8cl/U/ShjnLlP9NmKczDZIWLaPId16uP9uDTJFmdmdtZlHLcZXkO06V33acUOjakC + Lm9Jkd3dCnlKpSjrySnMSu1hCiQKWCX+5A84hIsJaGLgPr8eFalVDpbIsp5IHXNj28wM + vYpbV4Eg7+hLaLBBFl7S6MFaAL9dS82+eD5Dn6Uop2yeW3YEyMxsKdgLrdh1QpC9KcyT + WSG6BfifJG9aAWWE28X/cl+dFSOU/NwGZhB8NZGFtVJjBt7BAeIr77r5797k5wr9oXef + paAmLoPNs7nQqGkDsVmqTNPhjcDB8ko3NO0bZKZ372wXKMckKRhi9FZU1IdxFuNCzXwh + cnvA== +X-Gm-Message-State: + ALoCoQlrhW+8v/affVhlYbHkpmdIylunGfVpN1YERAtBIJI5nGfvgY5rJT+h7nN5osYnQvAzqWRC +X-Received: by 10.194.120.131 with SMTP id lc3mr7890184wjb.99.1443214145852; + Fri, 25 Sep 2015 13:49:05 -0700 (PDT) +Received: from localhost (mobile-access-bcee63-221.dhcp.inet.fi. + [188.238.99.221]) + by smtp.gmail.com with ESMTPSA id fx2sm4946737wib.24.2015.09.25.13.49.04 + (version=TLSv1/SSLv3 cipher=OTHER); + Fri, 25 Sep 2015 13:49:04 -0700 (PDT) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH 0/3] delete directory documents on directory removal +Date: Fri, 25 Sep 2015 23:48:43 +0300 +Message-Id: +X-Mailer: git-send-email 2.1.4 +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.18 +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: Fri, 25 Sep 2015 20:49:10 -0000 + +Hi all, this is a bit RFC-ish series for fixing some issues on directory +renames and removals. The commit messages could use some polish, but I +think I added enough to make it reasonable to follow. I'm not sure if +the directory document removal API does enough or not, or whether it's a +good API. This series just proves we need to do this. + +BR, +Jani. + + + +Jani Nikula (3): + test: flag one more notmuch new test as broken + lib: add interface to delete directory documents + cli: delete directory documents on directory removal + + lib/directory.cc | 18 ++++++++++++++++++ + lib/notmuch.h | 7 +++++++ + notmuch-new.c | 12 +++--------- + test/T050-new.sh | 2 +- + 4 files changed, 29 insertions(+), 10 deletions(-) + +-- +2.1.4 + -- 2.26.2