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 66D1B6DE1607 for ; Thu, 14 Jan 2016 02:33:22 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: 0.661 X-Spam-Level: X-Spam-Status: No, score=0.661 tagged_above=-999 required=5 tests=[AWL=0.009, SPF_NEUTRAL=0.652] 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 gpou1leArfDd for ; Thu, 14 Jan 2016 02:33:19 -0800 (PST) Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34]) by arlo.cworth.org (Postfix) with ESMTP id 3F39A6DE091E for ; Thu, 14 Jan 2016 02:33:18 -0800 (PST) Received: from guru.guru-group.fi (localhost [IPv6:::1]) by guru.guru-group.fi (Postfix) with ESMTP id 529C0100080; Thu, 14 Jan 2016 12:33:24 +0200 (EET) From: Tomi Ollila To: Erik Quaeghebeur , notmuch@notmuchmail.org Subject: Re: Filesystem functionality used by notmuch In-Reply-To: <10167591.o1RkUU4mKP@sysoppad> References: <10167591.o1RkUU4mKP@sysoppad> User-Agent: Notmuch/0.21+32~g73439f8 (http://notmuchmail.org) Emacs/24.3.1 (x86_64-unknown-linux-gnu) X-Face: HhBM'cA~ MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.20 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: Thu, 14 Jan 2016 10:33:22 -0000 On Thu, Jan 14 2016, Erik Quaeghebeur wrote: > Dear group, > > > Context: FUSE filesystem for accessing data in a database. > > I understand that notmuch needs to be able to read a file given a > filename (including its path). Are there any more requirements on the > filesystem. For example, I assume that filename modification is optional > (maildir flag changes). But perhaps notmuch makes use of times stored > with files or some other file property? notmuch new uses directory (and may, or may not (did not check) file) times to figure out new files appearing in fs. https://github.com/domo141/nottoomuch/blob/master/mboxviewfs.c is a FUSE filesystem which shows files in one mbox file as separate files; it uses the Date: header for the times of individual files and last per month for a directory times (files are shown in .../yyyy-mm/ directory hierarchy). Tomi > > Best, > > Erik