From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 4BF811F406; Sat, 16 Dec 2023 18:17:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1702750638; bh=PqmhKYhDxq9lHRJ82ZyWO8k7FRRQ+MLFCwTkyWfmroM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=jXbydNKvEAU8j4v1CGevLUzEvhDGzyJXqNKEQlKvsIhON0O+mF5de6ODom3ON+aM/ 1yMzBFG1Pz7/iObedCwmcUdeRkKaZX57YcHRtOKYGlaq7cTuS74QuaU+y12u65A+VF +4Jozv0jazGtgpnMYKGO2Ip1RVmMZ1Ga8edkbuyM= Date: Sat, 16 Dec 2023 18:17:18 +0000 From: Eric Wong To: Konstantin Ryabitsev Cc: meta@public-inbox.org Subject: Re: [PATCH] lei: support reading MH for convert+import+index Message-ID: <20231216181718.M211068@dcvr> References: <20231216130932.479628-1-e@80x24.org> <20231216-strange-hamster-of-research-e7a7ea@lemur> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231216-strange-hamster-of-research-e7a7ea@lemur> List-Id: Konstantin Ryabitsev wrote: > Nice, so eventually we should be able to specify the following instead of > faking out a maildir? > > watch=mh:/var/spool/mlmmj/list.name/archive Yes, that's the plan. > > inotify|EVFILT_VNODE watches aren't supported, yet, either. > > In the case of mlmmj it's sufficient to watch the > /var/spool/mlmmj/list.name/index file for updates, but I don't know how well > this lends itself to other implementations (I am not at all familiar with MH). Just watching the directory itself is sufficient (like Maildir) and will report new files. We just have to check /\A[0-9]+\z/