From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18680 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.user Subject: Re: group splitting and gnus-secondary-select-methods Date: Fri, 11 Aug 2017 09:22:44 -0700 Message-ID: <87a836qdkb.fsf@ericabrahamsen.net> References: <87tw1fca6a.fsf@grothesque.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1502468589 9784 195.159.176.226 (11 Aug 2017 16:23:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Aug 2017 16:23:09 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.0.50 (gnu/linux) To: info-gnus-english@gnu.org Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Aug 11 18:23:05 2017 Return-path: Envelope-to: gegu-info-gnus-english@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgCiG-0002DM-8e for gegu-info-gnus-english@m.gmane.org; Fri, 11 Aug 2017 18:23:04 +0200 Original-Received: from localhost ([::1]:54198 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgCiM-0000eS-Nk for gegu-info-gnus-english@m.gmane.org; Fri, 11 Aug 2017 12:23:10 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43163) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgCiC-0000cv-4f for info-gnus-english@gnu.org; Fri, 11 Aug 2017 12:23:03 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgCi9-00081h-0v for info-gnus-english@gnu.org; Fri, 11 Aug 2017 12:23:00 -0400 Original-Received: from [195.159.176.226] (port=49690 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dgCi8-000814-Pt for info-gnus-english@gnu.org; Fri, 11 Aug 2017 12:22:56 -0400 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1dgChw-00018s-E3 for info-gnus-english@gnu.org; Fri, 11 Aug 2017 18:22:44 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 30 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:4ZDp6c4xmRiopL14Ab9mhIQKA+8= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.159.176.226 X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Original-Sender: "info-gnus-english" Xref: news.gmane.org gmane.emacs.gnus.user:18680 Archived-At: Christoph Groth writes: > Hi, > > I'm trying to setup group mail splitting in a setup where I receive > mail through multiple IMAP accounts that are configured through > gnus-secondary-select-methods. > > Simply setting gnus-secondary-select-methods in ~/.gnus, like with > plain splitting, doesn't work, since at the time when ~/.gnus is > executed (gnus-group-split-fancy) returns an empty split. > > In order to solve this problem, I have defined a function > my-set-secondary-select-methods and add it to one or multiple > appropriate hooks. Is there a better alternative? > > If not, what hooks should I add my function to? It seems to work with > > (add-hook 'gnus-read-newsrc-el-hook 'my-set-secondary-select-methods) > (add-hook 'gnus-get-new-news-hook 'my-set-secondary-select-methods) I'm not entirely sure what's going on with your setup, here, but I'm pretty sure it should work without having to re-set your secondary select methods in a hook. Can you show us a simple config, setting gnus-secondary-select-methods and the splitting rules in ~/.gnus? The setup that isn't working for you? Eric