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:42:25 +0100 Message-ID: <87tud8cr5q.fsf@elite.giraud> References: <87leyl1lr9.fsf@elite.giraud> <87bkzgpi9u.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="6237"; 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 11:02:21 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 1nHjnp-0001Po-MP for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Feb 2022 11:02:21 +0100 Original-Received: from localhost ([::1]:34258 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHjno-0000Wh-PN for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 09 Feb 2022 05:02:20 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:44780) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHjV8-0008JM-Ex for bug-gnu-emacs@gnu.org; Wed, 09 Feb 2022 04:43:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55964) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nHjV8-0001IT-5j for bug-gnu-emacs@gnu.org; Wed, 09 Feb 2022 04:43:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nHjV7-0002OU-Ui for bug-gnu-emacs@gnu.org; Wed, 09 Feb 2022 04:43:01 -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:43:01 +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.16443997519164 (code B ref 53877); Wed, 09 Feb 2022 09:43:01 +0000 Original-Received: (at 53877) by debbugs.gnu.org; 9 Feb 2022 09:42:31 +0000 Original-Received: from localhost ([127.0.0.1]:49860 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHjUd-0002Nk-HI for submit@debbugs.gnu.org; Wed, 09 Feb 2022 04:42:31 -0500 Original-Received: from ledu-giraud.fr ([51.159.28.247]:31404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nHjUa-0002NZ-US for 53877@debbugs.gnu.org; Wed, 09 Feb 2022 04:42:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=qOv+2vgSRDavB7GK 18KqVcEENuAQhLQe00RUQUBDF+s=; h=in-reply-to:date:references:subject: cc:to:from; d=ledu-giraud.fr; b=PiCLqgJsyMWz/2MQhvaeqX6/M924aQmdYB+xcM 82/na7Q+QKeIPmBPppFluF6in9ytofRce4uuhjsJcj2Vj6KHIhmujp1XiSUqhDaYpVFS6G M0HdPGjoVjjbeOlcdVMBOHGwtUVPqqAAHAzb5AZeEPXRNSJfIG6ppa1O6OT7VnhL8slGB6 MFT8fEVQIaUTgPjHLb7s5YivDjJ+fslB9OFETJtGRCtL8AKtt67+Hf1fcz/NF6eumWFym+ wSUcET2PSWAPfRBjX4jwpEWSSVwKShn/P0fyvMNVVIi3wp38efHwuoj/iGykpreDphKuCk G7JFJLI6aXFvpvsT8xQWRt+Q== Original-Received: from elite.giraud ( [10.1.1.1]) by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id c3200d99 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Wed, 9 Feb 2022 10:42:26 +0100 (CET) In-Reply-To: <87bkzgpi9u.fsf@gnus.org> (Lars Ingebrigtsen's message of "Wed, 09 Feb 2022 09:15:57 +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:226462 Archived-At: Lars Ingebrigtsen writes: > Manuel Giraud writes: > >> -(defvar nnmail-article-buffer " *nnmail incoming*" >> - "The buffer used for splitting incoming mails.") > > [...] > >> - (with-current-buffer (gnus-get-buffer-create nnmail-article-buffer) >> - (erase-buffer) > > No, this would break lots of Gnus installations -- people have splitting > rules that go > > (: split-on-body) > > where that function looks into nnmail-article-buffer to do whatever they > want. I've just test this with my patch in place: --8<---------------cut here---------------start------------->8--- (defun foo-split () (save-excursion (save-restriction (widen) (goto-char (point-min)) (when (re-search-forward "booga" nil t) "booga")))) ;; Mail splitting (XXX order is important) (setq nnmail-split-methods 'nnmail-split-fancy nnmail-split-fancy `(| (: foo-split) "elsewhere")) --8<---------------cut here---------------end--------------->8--- =E2=80=A6and it works as expected: splitting a mail containing "booga" to "booga". `nnmail-split-it' does not seems to have a reference to nnmail-buffer-article and just works on the current buffer: --8<---------------cut here---------------start------------->8--- ;; Builtin : operation. ((eq (car split) ':) (nnmail-log-split split) (nnmail-split-it (save-excursion (eval (cdr split) t)))) --8<---------------cut here---------------end--------------->8--- --=20 Manuel Giraud