From: Jani Nikula Date: Sat, 17 Oct 2015 13:06:53 +0000 (+0300) Subject: [PATCH 4/4] NEWS: news for notmuch_directory_delete X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9a6bf30296a52284f081a464f2f1449b592af331;p=notmuch-archives.git [PATCH 4/4] NEWS: news for notmuch_directory_delete --- diff --git a/d3/0ab2ca2a8791cd9cb41f71bd233cdde06186e9 b/d3/0ab2ca2a8791cd9cb41f71bd233cdde06186e9 new file mode 100644 index 000000000..037f30fc8 --- /dev/null +++ b/d3/0ab2ca2a8791cd9cb41f71bd233cdde06186e9 @@ -0,0 +1,96 @@ +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 2E1846DE0C3A + for ; Sat, 17 Oct 2015 06:07:36 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.529 +X-Spam-Level: +X-Spam-Status: No, score=-0.529 tagged_above=-999 required=5 tests=[AWL=0.191, + 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 T4yG9k9JQ21t for ; + Sat, 17 Oct 2015 06:07:34 -0700 (PDT) +Received: from mail-wi0-f179.google.com (mail-wi0-f179.google.com + [209.85.212.179]) + by arlo.cworth.org (Postfix) with ESMTPS id 885E16DE0C42 + for ; Sat, 17 Oct 2015 06:07:27 -0700 (PDT) +Received: by wicll6 with SMTP id ll6so41637260wic.0 + for ; Sat, 17 Oct 2015 06:07:26 -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:in-reply-to + :references; + bh=bI1nwCPdk+mDpycRax09/75Uua4qiPjn+Y4EnsAuqp4=; + b=fAoJWP4itWCxDTzkMuBzRHKKLu4PUag6brGGqlBq4PEuijTNBAyAkdJ+BBvIhvraRB + fc/HrxhcRcPGYmD9f7FSIeJlk7PP+7VWk2EYq7u4WPCY5CzHG5bwg2ZqE986UiB0kadz + n2cs/UI7y7rozePwLj2SlQXArIv9+uVrLwIDxX2p6tu4yMv0icFarVTmGwqOzXcz7SFB + nu5clhuWJtAhRK78JLLyve6i7sAl4txAAuetm3brYCsZ3sDwaArYfriG+NBRygyqv5tB + 8gzYpDPP1viJEI8Kkmjoa2GfS/ZtXZjoeUE0VbjHJSDWTV7xyBW027zEiNqtS7/kF5CG + rmfg== +X-Gm-Message-State: + ALoCoQn+9ebWY2R+Kcz6MBUhG8/sXf5VbcMi5ylKanW5qoA1qvcdUtRHgZojTw2k4rhvsZpYfhRz +X-Received: by 10.195.11.72 with SMTP id eg8mr25346683wjd.14.1445087245969; + Sat, 17 Oct 2015 06:07:25 -0700 (PDT) +Received: from localhost (mobile-access-bcee43-111.dhcp.inet.fi. + [188.238.67.111]) + by smtp.gmail.com with ESMTPSA id ew2sm7074034wic.20.2015.10.17.06.07.25 + (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); + Sat, 17 Oct 2015 06:07:25 -0700 (PDT) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH 4/4] NEWS: news for notmuch_directory_delete +Date: Sat, 17 Oct 2015 16:06:53 +0300 +Message-Id: <1445087213-21364-4-git-send-email-jani@nikula.org> +X-Mailer: git-send-email 2.1.4 +In-Reply-To: <1445087213-21364-1-git-send-email-jani@nikula.org> +References: <1445087213-21364-1-git-send-email-jani@nikula.org> +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: Sat, 17 Oct 2015 13:07:36 -0000 + +--- + NEWS | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +diff --git a/NEWS b/NEWS +index 9940f8185e82..c5417144b755 100644 +--- a/NEWS ++++ b/NEWS +@@ -47,6 +47,19 @@ Library + The use of absolute paths is now enforced when calling + `notmuch_database_{open, create}`. + ++New function `notmuch_directory_delete` to delete directory documents ++ ++ Previously there was no way to delete directory documents from the ++ database, leading to confusing results when the "ghost" directory ++ document of a renamed or deleted filesystem directory was ++ encountered every time the parent directory was being scanned by ++ `notmuch new`. The mtime of the old directory document was also used ++ if a directory by the same name was added again in the filesystem, ++ potentially bypassing the scan for the directory. The issues are ++ fixed by providing a library call to delete directory documents, and ++ deleting the old documents in `notmuch new` on filesystem directory ++ removal or rename. ++ + nmbug-status + ------------ + +-- +2.1.4 +