[PATCH 0/3] delete directory documents on directory removal
authorJani Nikula <jani@nikula.org>
Fri, 25 Sep 2015 20:48:43 +0000 (23:48 +0300)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:49:37 +0000 (14:49 -0700)
6b/2b1e476795aa45020940b0edb20c616184beca [new file with mode: 0644]

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