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 8999D6DE119D for ; Sat, 12 Aug 2017 09:47:48 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.494 X-Spam-Level: X-Spam-Status: No, score=0.494 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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_WEB=0.614, 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 6Q4vpd4tZL3I for ; Sat, 12 Aug 2017 09:47:47 -0700 (PDT) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by arlo.cworth.org (Postfix) with ESMTPS id 640A96DE1154 for ; Sat, 12 Aug 2017 09:47:47 -0700 (PDT) Received: by mail-wm0-f65.google.com with SMTP id x64so9764238wmg.1 for ; Sat, 12 Aug 2017 09:47:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:subject:date:message-id; bh=xYARppzuDSLDGVx93bx7kg/j+GmBhM0bSAbD9Wx2wW8=; b=LA4eaYpU2nBFVZLXlgJvk91XAFajwzPTTLysh4589WqUvFOhjsh6jQ55hZ3X8XKaff cv2clWJH3KY1bz63wf9to6Oe4BEBhbh+JUSfE0XKPG8IwLb/JQgb8k5Ir8FlBhHKY4gg V+ENxXij3PCU1NrS7LjG10i2DJK8CyVIge7qFumipq89ZyTqzjmaTF/ImaQjFRM3fjgE rgUGsr4z48lN4jY8PHrdP8F80i/T5RYc8layq6tePVCZLXWCU8j3FZ1+SE2s8esRQMNo OrPEtvcr+bYc3n+1PubX4uH2PdBkQkuRLIeaAdv2u5Xj/A+D85slv/82D0fBZ2qSrMj6 gFvQ== 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; bh=xYARppzuDSLDGVx93bx7kg/j+GmBhM0bSAbD9Wx2wW8=; b=RkrSBeJE/gnSmvQ5kdDmuEgHoEL/u7AkJ3lNSwXqFtUqy2yGt+QAEhtR6Wu31I9lGM pal7OGlLo51OtwMU/oa6twGsDxtxdfwtKduxWODHcBIPb1w2ra2/dq45+M0PqQ0fitus Lw+ruwC08Q09al5mjNTfoTm++UhsxyLg66doIzAHpEAheRzuSVcZlnxPgMMrN0SIFi99 XIV47DT3povF5x7VCZICasX6idqFicI5V11cqXRsBogv1+7Yw2MC+juZ7DJMhFHk9yuj a4txCa2MRryADjiKF9i3YQDQz7U9s6H1yuUfYTYKjxga3629b++yp/5kqdxH3q+DXFuF RD/w== X-Gm-Message-State: AHYfb5iXAQLXmJQJ4ZqezcEdrKq71896LadHVrE4HH23d0XwamE+rcAc m447gpxA1SPG7I9RCbM= X-Received: by 10.28.87.193 with SMTP id l184mr1237781wmb.121.1502556464268; Sat, 12 Aug 2017 09:47:44 -0700 (PDT) Received: from localhost (HSI-KBW-046-005-019-096.hsi8.kabel-badenwuerttemberg.de. [46.5.19.96]) by smtp.gmail.com with ESMTPSA id 53sm4880866wry.31.2017.08.12.09.47.38 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 12 Aug 2017 09:47:39 -0700 (PDT) From: Yuri Volchkov To: notmuch@notmuchmail.org Subject: [PATCH 0/4] fix "no such file" problem for emails send by emacs Date: Sat, 12 Aug 2017 18:47:29 +0200 Message-Id: <1502556453-11609-1-git-send-email-yuri.volchkov@gmail.com> X-Mailer: git-send-email 2.7.4 X-Mailman-Approved-At: Sat, 12 Aug 2017 13:16:46 -0700 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: Sat, 12 Aug 2017 16:47:48 -0000 Hi, I have faced a problem, that messages sent by emacs could not be shown or found later. The "notmuch show id:" says "no such file or directory". This patch series fixes the problem related to my use case. The detailed description of the root cause is provided in the related patch. Yuri Volchkov (4): test: insert into the folder with trailing / insert: strip trailing / in folder path test: show id:<> works even if the first duplicated 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 | 7 +++++++ test/T670-duplicate-mid.sh | 25 +++++++++++++++++++++++++ util/string-util.c | 13 +++++++++++++ util/string-util.h | 2 ++ 7 files changed, 75 insertions(+), 7 deletions(-) -- 2.7.4