From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12030 invoked from network); 8 Nov 2021 23:08:36 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 8 Nov 2021 23:08:36 -0000 Received: from lists1.math.uh.edu ([129.7.128.208]) by mx1.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mkDkf-003ELf-Qn for ml@inbox.vuxu.org; Mon, 08 Nov 2021 17:08:33 -0600 Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.94.2) (envelope-from ) id 1mkDkf-000B19-7o for ml@inbox.vuxu.org; Mon, 08 Nov 2021 17:08:33 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.94.2) (envelope-from ) id 1mkDkd-000B10-39 for ding@lists.math.uh.edu; Mon, 08 Nov 2021 17:08:31 -0600 Received: from quimby.gnus.org ([95.216.78.240]) by mx2.math.uh.edu with esmtps (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1mkDkb-008X9f-35 for ding@lists.math.uh.edu; Mon, 08 Nov 2021 17:08:30 -0600 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:Mime-Version:References:Message-ID:Date:Subject: From:To:Sender:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zRTMYUt722z06+/uo7cLgd2Pr/Wm0dsgwCcPURPFFOM=; b=ucD0j9Poo99KmW9C70zuOMiJgS f99BVPP+OHuDNYT83j2i22x7uQ9hXp7efsFwoFDEBNVTpnqSaMAEsChruYoh9qkHL5caTWnmKKiVQ OMJ7fh2AUkQhWzmno39J+cAJ6RSFkkbIiJloaNM4+YMzbUW4B6KJnW/7OJWDuUWX/oJ8=; Received: from ciao.gmane.io ([116.202.254.214]) by quimby.gnus.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mkDkM-0006RW-Nw for ding@gnus.org; Tue, 09 Nov 2021 00:08:23 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1mkDkE-0001vN-RF for ding@gnus.org; Tue, 09 Nov 2021 00:08:06 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: "Jose A. Ortega Ruiz" Subject: Re: per group split rules Date: Mon, 08 Nov 2021 22:38:31 +0000 Message-ID: <87lf1yp920.fsf@gnus.jao.io> References: <87wnlipien.fsf@gnus.jao.io> <87wnli2w7n.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:4AeTRMiF5k/1H5RQ1MDfhgdbNH4= X-Attribution: jao X-Clacks-Overhead: GNU Terry Pratchett X-URL: List-ID: Precedence: bulk On Mon, Nov 08 2021, Emanuel Berg wrote: > Jose A. Ortega Ruiz wrote: > >> i have my mail-sources set to '((group)), so that each of my >> nnml groups has a mail-source of its own (typically reading >> a spool file or a local maildir, populated asynchronously). >> is there a way of having split rules (fancy or not) that >> apply /only/ to a given nnml group, rather than globally to >> all incoming mail? > > Respooling perhaps ... how often/when is this supposed > to happen? every time i import new mail, so i think that's not going to be practical. >> or, alternatively, is it possible to have a (global) split >> rule that says (when nnmail-resplit-incoming is t) something >> like: "leave this message in the group which fetched it via >> its mail-source parameter"? > > You can use functions instead of regexps both with fancy and > regular so put it there if so, I guess? yes, one of my first thoughts, but when a splitting function is called, the incoming mail has been inserted in a temp current buffer and there seems to be no way of knowing what its original mail-source was (but i have to try again and check the value of that variable, maybe it's still set... i am not sure i tried that). thanks, jao -- Besides the noble art of getting things done, there is the noble art of leaving things undone. The wisdom of life consists in the elimination of nonessentials. -Lin Yutang, writer and translator (1895-1976)