--- /dev/null
+Return-Path: <arekfu@gmail.com>\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 201AA6DE1737\r
+ for <notmuch@notmuchmail.org>; Fri, 6 Nov 2015 05:23:28 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.025\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.025 tagged_above=-999 required=5 tests=[AWL=-0.476,\r
+ DKIM_ADSP_CUSTOM_MED=0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,\r
+ FREEMAIL_FROM=0.001, NML_ADSP_CUSTOM_MED=1.2, RCVD_IN_DNSWL_LOW=-0.7,\r
+ RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001,\r
+ T_FREEMAIL_FORGED_FROMDOMAIN=0.01, T_HEADER_FROM_DIFFERENT_DOMAINS=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 XjcLY1rpQc9s for <notmuch@notmuchmail.org>;\r
+ Fri, 6 Nov 2015 05:23:26 -0800 (PST)\r
+Received: from mail-wi0-f169.google.com (mail-wi0-f169.google.com\r
+ [209.85.212.169])\r
+ by arlo.cworth.org (Postfix) with ESMTPS id DACFE6DE0FB0\r
+ for <notmuch@notmuchmail.org>; Fri, 6 Nov 2015 05:23:25 -0800 (PST)\r
+Received: by wicll6 with SMTP id ll6so30041715wic.0\r
+ for <notmuch@notmuchmail.org>; Fri, 06 Nov 2015 05:23:24 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=mime-version:sender:in-reply-to:references:date:message-id:subject\r
+ :from:to:content-type;\r
+ bh=tENXmIfgzKySxksMnNGM8d2/FW95bhjrU0khDPX5K/s=;\r
+ b=0MZAsFWEbi17nUtuQquqRhfuKsQXvZGXJ37EEfBPPxwvrDmbm0oXfdWN55/DaFldXs\r
+ FQiApBeKJAFvIRnG7q1xxcSO8TbH6S1pkOMbef5WwSfIXLsexNAEGxVVUyKHD6FZw7xD\r
+ 2pSSWX6Fm+3FXZNfJHC45cKBKwDOYxDaQg9m8UpUo0Xda3s/fES9m+VOV0UUBeO94vDV\r
+ vDG7YU1zO08qHdN0T4EjeZX5+q9oKlDpeBAWqPamOC7aJK+dFuw4EkLLBzokFKFY5JYd\r
+ lCwEQM4YtQPzUt/8DZnudgr356e5yYzRL4c7cneB14xsFD6RmPx8Gyq6utZofbg4OnYg\r
+ Wtrg==\r
+MIME-Version: 1.0\r
+X-Received: by 10.194.105.38 with SMTP id gj6mr14114105wjb.130.1446816204075; \r
+ Fri, 06 Nov 2015 05:23:24 -0800 (PST)\r
+Sender: arekfu@gmail.com\r
+Received: by 10.27.155.197 with HTTP; Fri, 6 Nov 2015 05:23:24 -0800 (PST)\r
+In-Reply-To: <87a8qrmfzb.fsf@maritornes.cs.unb.ca>\r
+References:\r
+ <CAMEnOBJw3EbZ1_VOawD2M71bd=cs+Nh7PPJ9o1FiYonQh8rZ3w@mail.gmail.com>\r
+ <87a8qrmfzb.fsf@maritornes.cs.unb.ca>\r
+Date: Fri, 6 Nov 2015 14:23:24 +0100\r
+X-Google-Sender-Auth: cxqrG-AkaX4K57gmAARVIh367J8\r
+Message-ID:\r
+ <CAMEnOBJy6McKezvbwd4OZ9N219mZROz=NkiZxULUa2OjMV0B+w@mail.gmail.com>\r
+Subject: Re: weird paths in notmuch database\r
+From: Davide Mancusi <arekfu@yahoo.it>\r
+To: notmuch@notmuchmail.org\r
+Content-Type: text/plain; charset=UTF-8\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Fri, 06 Nov 2015 13:23:28 -0000\r
+\r
+2015-11-06 14:09 GMT+01:00 David Bremner <david@tethera.net>:\r
+>> $ notmuch search --output=files 'path:/home/**'\r
+>> /export/home/username/mail//home/username/local/mail/archive/cur/1446805732.2711_9.hostname:2,S\r
+>> /export/home/username/mail/archive/cur/1446805732.2711_9.hostname:2,S\r
+[...]\r
+>\r
+> The directory must be specified relative to the top-level maildir\r
+> (and without the leading slash).\r
+>\r
+> Please try with correct search syntax in order to narrow down the\r
+> problem.\r
+\r
+The unusual search was just to illustrate the problem. I get the paths\r
+even with tag searches, like so:\r
+\r
+$ notmuch search --output=files\r
+'id:20151106102835.GA2711@hostname.domain.com'\r
+/export/home/username/mail//home/username/local/mail/archive/cur/1446805732.2711_9.hostname:2,S\r
+/export/home/username/mail/archive/cur/1446805732.2711_9.hostname:2,S\r