From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18679 Path: news.gmane.org!.POSTED!not-for-mail From: Christoph Groth Newsgroups: gmane.emacs.gnus.user Subject: group splitting and gnus-secondary-select-methods Date: Fri, 11 Aug 2017 00:47:25 +0200 Message-ID: <87tw1fca6a.fsf@grothesque.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1502422731 16478 195.159.176.226 (11 Aug 2017 03:38:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Aug 2017 03:38:51 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (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 05:38:46 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 1dg0mY-0003jN-W1 for gegu-info-gnus-english@m.gmane.org; Fri, 11 Aug 2017 05:38:43 +0200 Original-Received: from localhost ([::1]:55096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dg0md-0005Nd-Mn for gegu-info-gnus-english@m.gmane.org; Thu, 10 Aug 2017 23:38:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dfwEn-0003Ja-6c for info-gnus-english@gnu.org; Thu, 10 Aug 2017 18:47:34 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dfwEi-00083C-7g for info-gnus-english@gnu.org; Thu, 10 Aug 2017 18:47:33 -0400 Original-Received: from mail6.webfaction.com ([31.170.123.134]:53652 helo=smtp.webfaction.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dfwEi-00082K-1A for info-gnus-english@gnu.org; Thu, 10 Aug 2017 18:47:28 -0400 Original-Received: from localhost (s8s38-1-88-180-226-12.fbx.proxad.net [88.180.226.12]) by smtp.webfaction.com (Postfix) with ESMTPSA id 84D1C604B75D7 for ; Thu, 10 Aug 2017 22:47:25 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 31.170.123.134 X-Mailman-Approved-At: Thu, 10 Aug 2017 23:38:38 -0400 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:18679 Archived-At: 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) Thanks for any hints, Christoph