From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 26A071F601; Fri, 9 Dec 2022 01:41:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1670550072; bh=zYzInn5z9bJK8FSFNTzAroeZnoi+dA2HmgxN6e/SJ3M=; h=Date:From:To:Subject:References:In-Reply-To:From; b=kb8lwYPnr0Dkegqh2x67mRihZGy2VNB8NHbwaiGDZvsRhTwVX0ZvmsBfNO/8NDwjg Vq6N3y1PdDTKv70DuFDCj+YJlGEoqJMSquZ9WAS20g3JLiQyIaT8OMJHExdkY+DEc1 S7R2f5bdjeEr2wRdrVjcmorkUFsx6EJBzbjOuibw= Date: Fri, 9 Dec 2022 01:41:12 +0000 From: Eric Wong To: meta@public-inbox.org Subject: FUSE3 vs read-write IMAP for lei Message-ID: <20221209014112.GA9768@dcvr> References: <20220804072349.8352-1-e@80x24.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220804072349.8352-1-e@80x24.org> List-Id: Eric Wong wrote: > I don't think lei+FUSE will be as portable or useful as a > local IMAP server (and maybe JMAP, eventually); but r/w IMAP > support would be nice.. One thing about lei which really bothers me is that it needs to write out mail already in local git repos to the FS to be read by regular MUAs. This is wasteful, of course; so there's 2 ways I can imagine exposing mail to ordinary MUAs without excessive disk traffic/wear: == read-write IMAP for lei * connect via localhost (127.0.0.1, [::1]) (don't think local sockets are supported by any MUAs) * May be extended to JMAP; but it's hard to be motivated on JMAP since my favorite MUA doesn't do JMAP, yet. + portable (can be done in pure Perl + DBD::SQLite + Xapian) + we already have a read-only IMAP server which can be extended for read/write - still needs login w/ username+password due to multi-user systems - may still susceptible to abuse and from multi-user systems - IMAP gets pretty complex, and MUAs sometimes don't do it well == FUSE3 - Maildir-oriented FS + will require C compiler since old FUSE XS modules don't do FUSE3 (for readdirplus); and going w/o readdirplus is unimaginable for Maildir. + I already have existing (unreleased) AGPL-3 work based on FUSE3 + URCU + Perl5 with just-ahead-of-time (JAOT) compilation * I've seen the light w/ URCU, and can't go back to C without it :P - likely Linux-only (not sure how good FUSE support will be if depending on FUSE3 features) - kernel caches still incur nasty memory overhead w/ Maildir - readdir(3) userspace API still sucks Of course, doing both is an option, too, given enough time...