From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Manuel Giraud Newsgroups: gmane.emacs.bugs Subject: bug#53877: 29.0.50; [PATCH] async Gnus/nnml Date: Wed, 09 Feb 2022 10:52:39 +0100 Message-ID: <87pmnwcqoo.fsf@elite.giraud> References: <87leyl1lr9.fsf@elite.giraud> <877da4pi2h.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23067"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (berkeley-unix) Cc: 53877@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Feb 09 10:57:48 2022 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nHjjP-0005on-Fw for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Feb 2022 10:57:47 +0100 Original-Received: from localhost ([::1]:57450 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHjjO-0005Gp-0L for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Feb 2022 04:57:46 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:49316) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHjep-0002Wa-6c for bug-gnu-emacs@gnu.org; Wed, 09 Feb 2022 04:53:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56009) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHjeo-0007GO-JR for bug-gnu-emacs@gnu.org; Wed, 09 Feb 2022 04:53:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHjeo-0004zG-Iv for bug-gnu-emacs@gnu.org; Wed, 09 Feb 2022 04:53:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Manuel Giraud Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 09 Feb 2022 09:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 53877 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 53877-submit@debbugs.gnu.org id=B53877.164440036419136 (code B ref 53877); Wed, 09 Feb 2022 09:53:02 +0000 Original-Received: (at 53877) by debbugs.gnu.org; 9 Feb 2022 09:52:44 +0000 Original-Received: from localhost ([127.0.0.1]:49905 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHjeV-0004ya-MV for submit@debbugs.gnu.org; Wed, 09 Feb 2022 04:52:43 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:6801) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHjeT-0004yR-K4 for 53877@debbugs.gnu.org; Wed, 09 Feb 2022 04:52:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=yHpV3NiD2NwAjcei TqOE31mFD7AdkFdi2DzQA0z0ZJc=; h=in-reply-to:date:references:subject: cc:to:from; d=ledu-giraud.fr; b=qIdsTCoUxpv7/e49bTXL6Zs+lFSO7Hk4WlolTl ob5RJDWMZTR6CwopkgDV1m48P+x+D13gzE3r4aunAC6eVLBs9szvCoNDe4VFgdfu5q9PxV YpCZ8DdR6e2fw7CCTlsK7HOLaputJPW3b98DSRGVCnDSlsRr7KSAkBClaW2+pJIfAY1H4O 7P3wWStSpgG4/Yx5eVsDHoIF1Y2h1qR8AVeQeGVBlIglOerYifdlCzVL74bTm0XCB+YEpC 4wh+16pviO0LFIvPyauaRhZzY+5O73/3EddG6jCMSsnjfmp7iBlJO3e+WCB4+uSR8qNNBC GkkMA/tMhwcLf3YKBqoTk88A== Original-Received: from elite.giraud ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 11e6bf64 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 9 Feb 2022 10:52:39 +0100 (CET) In-Reply-To: <877da4pi2h.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 09 Feb 2022 09:20:22 +0100") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:226459 Archived-At: Lars Ingebrigtsen writes: > Manuel Giraud writes: > >> -(defcustom mail-source-crash-box "~/.emacs-mail-crash-box" >> - "File where mail will be stored while processing it." >> +(defcustom mail-source-crash-box-prefix "~/.emacs-mail-crash-box-" >> + "Prefix of files where mail will be stored while processing it." >> :type 'file) > > Is the point here that we want to have several mail-source-fetchers > going in parallel? Yes that's the point. After those patches, I've started to work on moving `mail-source-fetch' from =C2=ABcallback method=C2=BB to =C2=ABproces= s+sentinel method=C2=BB. So far, I have done most simple ones: "file" and "directory" sources. >> +(defun mail-source-existing-crash-boxes () >> + (let ((directory (file-name-directory mail-source-crash-box-prefix)) >> + (partial (file-name-nondirectory mail-source-crash-box-prefix))) >> + (mapcar #'(lambda (name) (file-name-concat directory name)) >> + (file-name-all-completions partial directory)))) > > `directory-files' takes a MATCH parameter, and is the way to get > matches -- not the completion machinery. Thanks, I'll change that. --=20 Manuel Giraud