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 10069 invoked from network); 16 Nov 2022 16:31:31 -0000 Received: from mx1.math.uh.edu (129.7.128.32) by inbox.vuxu.org with ESMTPUTF8; 16 Nov 2022 16:31:31 -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 1ovLJx-006svT-TJ for ml@inbox.vuxu.org; Wed, 16 Nov 2022 10:31:29 -0600 Received: from lists1.math.uh.edu ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.96) (envelope-from ) id 1ovLJx-003TVq-1g for ml@inbox.vuxu.org; Wed, 16 Nov 2022 10:31:29 -0600 Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtp (Exim 4.96) (envelope-from ) id 1ovLJv-003TVk-0w for ding@lists.math.uh.edu; Wed, 16 Nov 2022 10:31:27 -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 1ovLJt-005HtF-5S for ding@lists.math.uh.edu; Wed, 16 Nov 2022 10:31:26 -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=tBBP+tp3gdOFEgvVpXqUjzmZIPD522iJH73lk+xaeEU=; b=n4+Rlv4EXbI6tndeceFXiclakH wGUBfh5OsPN+VqAQlJJhuoV19mINbogV4V2u4xerdMCA4IszJUeGYZqkJKAU3XK9PpN+Q2flKfNsV xQHDRYkmGiM7gs84MF1LTPbDONXvLJ23SSOwVlFpbea9Fx+GeRW7DPZ7WGVEWFHYiTnw=; 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 1ovLJm-0005sX-6K for ding@gnus.org; Wed, 16 Nov 2022 17:31:20 +0100 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1ovLJk-0004BC-L6 for ding@gnus.org; Wed, 16 Nov 2022 17:31:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: ding@gnus.org From: Greg Farough Subject: Re: Splitting mail between multiple addresses Date: Wed, 16 Nov 2022 11:31:09 -0500 Message-ID: <867czueu9e.fsf@gnu.org> References: <87tu352c5w.fsf@isnotmyreal.name> <86tu31dz35.fsf@gnu.org> <87tu2zmt2h.fsf@isnotmyreal.name> Mime-Version: 1.0 Content-Type: text/plain User-Agent: Gnus/5.13 (Gnus v5.13) Cancel-Lock: sha1:CiHkKqrXUuDXBOB+jzNHMGGEsx4= List-ID: Precedence: bulk On Tue, Nov 15 2022, TRS-80 wrote: > Greg Farough writes: > >> On Fri, Nov 11 2022, TRS-80 wrote: >> >>> Hello list, >>> >>> I have a couple different email addresses (each as secondary select >>> methods), with nntp (Gmane) as primary select method. >>> >>> I have some rules defined in `nnmail-split-methods', and then under each >>> email, I have `nnimap-split-methods' set to 'default'. This seemed to >>> be the only way to get it to work. >>> >>> I would really like to set up splitting rules under each email address, >>> that would be specific to mail coming to that address. But I could not >>> figure out how to do so. >>> >>> Any tips would be appreciated. >> >> I use something like this: >> >> (nnimap "Email" >> >> (nnmail-split-methods nnmail-split-fancy) >> (nnimap-split-methods nnmail-split-fancy) >> (nnmail-split-fancy (| >> ("from" "ding@gnus.org" "INBOX.gnus") >> ("from" "morgoth@mordorenterprises.org" junk) >> ..and so on.. >> ))) >> >> And that works. >> >> -g > > If I am understanding you correctly, I should be able to define both > `nnmail-split-methods' and `nnimap-split-methods' /per email/? Right. I have three email accounts in my gnus-secondary-select-methods, and each one's rules for nnmail-split-fancy apply only to that address. In the example I gave, one of the *other* accounts getting a message from morgoth@mordorenterprises.org would not necessarily send it to junk. The only filters that apply are the ones I define for that specific account. > In my case, I am using simple (not fancy) but maybe it doesn't > matter. I remember really struggling to get it working, but it's been so long that I don't remember how much I messed around with simple. Fancy works great, though. > Thanks a lot for the pointer! I'll try it and report back how it goes. You're welcome. Good luck! -g -- "We carry a new world here, in our hearts. That world is growing in this minute."