--- /dev/null
+Return-Path: <tomi.ollila@iki.fi>\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 AB0DE6DE09B0\r
+ for <notmuch@notmuchmail.org>; Tue, 14 Apr 2015 06:52:56 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.157\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.157 tagged_above=-999 required=5 tests=[AWL=0.505, \r
+ SPF_NEUTRAL=0.652] 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 mENwwVUyUlaM for <notmuch@notmuchmail.org>;\r
+ Tue, 14 Apr 2015 06:52:54 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
+ by arlo.cworth.org (Postfix) with ESMTP id D88406DE0948\r
+ for <notmuch@notmuchmail.org>; Tue, 14 Apr 2015 06:52:53 -0700 (PDT)\r
+Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
+ by guru.guru-group.fi (Postfix) with ESMTP id 07C541000F3;\r
+ Tue, 14 Apr 2015 16:52:30 +0300 (EEST)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: francois@avalenn.eu, notmuch@notmuchmail.org\r
+Subject: Re: "notmuch new" does not remove my file from db (double slash\r
+ problem ?)\r
+In-Reply-To: <20150414105720.GH3224@fjo-extia-HPdeb.nsn-net.net>\r
+References: <20150414105720.GH3224@fjo-extia-HPdeb.nsn-net.net>\r
+User-Agent: Notmuch/0.19+107~gab55bdb (http://notmuchmail.org) Emacs/24.3.1\r
+ (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+ $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+ !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Tue, 14 Apr 2015 16:52:29 +0300\r
+Message-ID: <m2y4luyfz6.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\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: Tue, 14 Apr 2015 13:52:56 -0000\r
+\r
+On Tue, Apr 14 2015, francois@avalenn.eu wrote:\r
+\r
+> Hello list,\r
+>\r
+> I have a little problem here.\r
+> I have a message of which I had multiple copies and I deleted one of\r
+> them but "notmuch new" does not suppress this copy.\r
+>\r
+> $ notmuch search --output=files id:20150216180408.HA14616@myhost\r
+> /home/francois/Maildir/my_first_box/cur/1424110151_0.24869.myhost,U=742:2,S\r
+> /home/francois/Maildir/my_second_box/cur/1424110163_0.24869.myhost,U=14486:2,S\r
+> /home/francois/Maildir/my_third_box//cur/1429004021.3224_3.myhost:2,S\r
+>\r
+> The last copy is the one I deleted.\r
+> I tried to readd the message to this box and after I have this status :\r
+>\r
+> $ cp ~/Maildir/my_second_box/cur/1424110163_0.24869.myhost,U=14486:2,S ~/Maildir/my_third_box/cur\r
+> $ notmuch new\r
+> Processed 1 file in almost no time.\r
+> No new mail.\r
+> $ notmuch search --output=files id:20150216180408.HA14616@myhost\r
+> /home/francois/Maildir/my_first_box/cur/1424110151_0.24869.myhost,U=742:2,S\r
+> /home/francois/Maildir/my_second_box/cur/1424110163_0.24869.myhost,U=14486:2,S\r
+> /home/francois/Maildir/my_third_box/cur/1429004021.3224_3.myhost:2,S\r
+> /home/francois/Maildir/my_third_box//cur/1429004021.3224_3.myhost:2,S\r
+>\r
+> And if I redelete it I come back to beginning :\r
+>\r
+> $ rm ~/Maildir/my_third_box/cur/1429004021.3224_3.myhost:2,S\r
+> $ notmuch new\r
+> No new mail. Detected 1 file rename.\r
+> $ notmuch search --output=files id:20150216180408.HA14616@myhost\r
+> /home/francois/Maildir/my_first_box/cur/1424110151_0.24869.myhost,U=742:2,S\r
+> /home/francois/Maildir/my_second_box/cur/1424110163_0.24869.myhost,U=14486:2,S\r
+> /home/francois/Maildir/my_third_box//cur/1429004021.3224_3.myhost:2,S\r
+>\r
+>\r
+> I don't know how the file path with double slash was added in the\r
+> first place to the DB but I have a real problem with it.\r
+>\r
+> Anyone have any idea of how I can solve this ?\r
+\r
+When you remoted file from my_third_box/ directory timestamp was updated\r
+and notmuch new should have noticed file disappearing -- it may be that\r
+as it has same message id as another it somehow did not get disappeared\r
+from db.\r
+\r
+what you can do is to move all of the messages to another directory,\r
+run notmuch new, restore (some of) the files and run notmuch new again\r
+(and then restore tags...)\r
+\r
+something like this:\r
+\r
+mkdir ~/tmp-20150414\r
+notmuch search --output=files id:20150216180408.HA14616@myhost | xargs mv -T ~/tmp-20150414\r
+notmuch new\r
+mv ~/tmp-20150414/1424110151_0.24869.myhost,U=742:2,S ~/Maildir/my_first_box/cur/\r
+notmuch new\r
+\r
+if you do this, report...\r
+\r
+I'll mark this message with notmuch::bug in nmbug (in near future...)\r
+\r
+Tomi\r
+\r
+\r
+>\r
+> $ notmuch --version\r
+> notmuch 0.18.2\r
+> $ lsb_release -a\r
+> No LSB modules are available.\r
+> Distributor ID: Debian\r
+> Description: Debian GNU/Linux 8.0 (jessie)\r
+> Release: 8.0\r
+> Codename: jessie\r
+> \r
+>\r
+>\r
+>\r
+> F.\r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r