From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 112EC6DE11B3 for ; Mon, 21 Aug 2017 08:45:03 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.311 X-Spam-Level: X-Spam-Status: No, score=-0.311 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_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.211, SPF_PASS=-0.001] 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 OW-86NyBcnMb for ; Mon, 21 Aug 2017 08:45:00 -0700 (PDT) Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by arlo.cworth.org (Postfix) with ESMTPS id D20E86DE1151 for ; Mon, 21 Aug 2017 08:44:59 -0700 (PDT) Received: by mail-wr0-f193.google.com with SMTP id 30so6119259wrk.0 for ; Mon, 21 Aug 2017 08:44:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id:in-reply-to:references; bh=MC9lcb1ky3qvkISTJxDpQ7Bu4tY2B8CIj5BIOg8arZ0=; b=tvPzx5FS5qBt7fOfKsSRG+3zqYtunrkcRipeL9m6pRd3XyvUeL+5a5HCJoSv/C1ijm Ov9J7IsYKrDVPqzX2BRRVx9aRvwD4CeHeQSqTnj/U8LEK2z+bJKvFjk1ByEHilwQaq5z T9YeLxCJFxy8IAbJMZ19jSSjVucun+JJH9yHwC2TquxTLvFaR5H9rOzMvo9Z+fX7263L J2zDAh3hJKICHmpSFcxLCuaH7BJCgWMdHmXqi3DwB52eyST4B9CIoi+OIR+ez8k+JPvZ iAF0yKrmx/q+EUSRLQ0TFUXQPmkPBcrzbwqm3u7z3zjyckF8S3N6Q2oVj5z2pUl6U2+B qd0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=MC9lcb1ky3qvkISTJxDpQ7Bu4tY2B8CIj5BIOg8arZ0=; b=Lk7ghdQfRmhsEK5xNrfdcfLprSXl8I01oOaoRRnI7opUTQPGRB8OTNdRbf2AZ0DvOh 77DgkgyCDfNLcydufIcO00idGENKoztigbDfIkuleaw+xzTS+CzjCPrVWqhIS10KFb03 yAUvLGX9dqVJBU2EWrTc8ZdS26YMFnWPLhhiuA9osb7PShA5BjlTNwGwkq7TxTmBjVMB 1DcK8McF3OhjrSGMZcqmpZKMwhtFTJ65Zu+JLh8csMuP833jSMlmXRP5h123Yctjug2A +tp4Xm/FJWd22OcTfEjmII/X32ONbAvlmgQiQMmFjvDJD5EEblxwV3keFKPSdu1SvRZN 8Jnw== X-Gm-Message-State: AHYfb5iayqfsn7K7eXqsVhRIJRVSSCwINhrXB+FYet8cuK33aEi0or37 JOjokqxA4V+jGrkKFgU= X-Received: by 10.28.145.2 with SMTP id t2mr7278798wmd.179.1503330295964; Mon, 21 Aug 2017 08:44:55 -0700 (PDT) Received: from localhost (mito.neclab.eu. [195.37.70.39]) by smtp.gmail.com with ESMTPSA id u101sm4146781wrc.40.2017.08.21.08.44.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 21 Aug 2017 08:44:55 -0700 (PDT) From: Yuri Volchkov To: notmuch@notmuchmail.org Subject: [PATCH v2 0/4] fix insufficient path canonization Date: Mon, 21 Aug 2017 17:44:44 +0200 Message-Id: <1503330288-9375-1-git-send-email-yuri.volchkov@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1502556453-11609-1-git-send-email-yuri.volchkov@gmail.com> References: <1502556453-11609-1-git-send-email-yuri.volchkov@gmail.com> X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.23 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, 21 Aug 2017 15:45:03 -0000 Former subject was 'fix "no such file" problem for emails send by emacs' Patches 1-2 fix the problem, so new broken records do not appear anymore. Patches 3-4 make notmuch able to work with such brocken records Changes in v2: 1) Separate patch for introduction of the strip_trailing() 2) Reduced commit description for the patch "insert: strip trailing / in folder path" 3) Proper use of 'test_subtest_known_broken' in the related tests Yuri Volchkov (4): database: move striping of trailing '/' into helper function insert: strip trailing / in folder path test: show id:<> works even if the first duplicate is deleted show: workaround for the missing file problem lib/database.cc | 3 +-- mime-node.c | 28 ++++++++++++++++++++++++---- notmuch-insert.c | 4 +++- test/T070-insert.sh | 1 - test/T670-duplicate-mid.sh | 25 +++++++++++++++++++++++++ util/string-util.c | 13 +++++++++++++ util/string-util.h | 2 ++ 7 files changed, 68 insertions(+), 8 deletions(-) -- 2.7.4