From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.user/18682 Path: news.gmane.org!.POSTED!not-for-mail From: Christoph Groth Newsgroups: gmane.emacs.gnus.user Subject: Re: group splitting and gnus-secondary-select-methods Date: Fri, 11 Aug 2017 20:34:50 +0200 Message-ID: <87valut0l1.fsf@grothesque.org> References: <87tw1fca6a.fsf@grothesque.org> <87a836qdkb.fsf@ericabrahamsen.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============8978227639854167441==" X-Trace: blaine.gmane.org 1502476510 21172 195.159.176.226 (11 Aug 2017 18:35:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 11 Aug 2017 18:35:10 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cc: info-gnus-english@gnu.org To: Eric Abrahamsen Original-X-From: info-gnus-english-bounces+gegu-info-gnus-english=m.gmane.org@gnu.org Fri Aug 11 20:35:03 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 1dgEls-0004f9-5F for gegu-info-gnus-english@m.gmane.org; Fri, 11 Aug 2017 20:34:56 +0200 Original-Received: from localhost ([::1]:36257 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgElw-0000HQ-OP for gegu-info-gnus-english@m.gmane.org; Fri, 11 Aug 2017 14:35:00 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dgEls-0000GN-OZ for info-gnus-english@gnu.org; Fri, 11 Aug 2017 14:34:58 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dgElp-0005XD-Jz for info-gnus-english@gnu.org; Fri, 11 Aug 2017 14:34:56 -0400 Original-Received: from mail6.webfaction.com ([31.170.123.134]:58030 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 1dgElp-0005Wy-DF for info-gnus-english@gnu.org; Fri, 11 Aug 2017 14:34:53 -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 CDCBA60397F2D; Fri, 11 Aug 2017 18:34:51 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 31.170.123.134 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:18682 Archived-At: --===============8978227639854167441== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; format=flowed Eric, Emanuel, Thank you for the quick replies! Perhaps I haven't been clear: when I said that I'm trying to setup "group mail splitting" I didn't mean plain mail splitting (I have been using that one since the begin of the century or so), I meant what the Gnus manual calls "group mail splitting" (there's a section on it). Gnus has functionality to generate fancy splitting rules automatically for groups that contain 'to-list' or 'to-address' parameters. If you have defined these parameters for some groups and evaluate (gnus-group-split-fancy), you'll get a split that can be assigned to the variable nnimap-split-fancy. So far so good, the only problem is that at the time that ~/.gnus gets executed, (gnus-group-split-fancy) returns an empty split '(&)'. You can see this by putting (setq my-group-split-fancy-result (gnus-group-split-fancy)) in your ~/.gnus and examining the variable. It seems to me that this is because when it executes its configuration file, Gnus doesn't yet know what groups there are. That's why I've been using hooks to set the variable gnus-secondary-select-methods. Gnus has some functionality to setup hooks for group mail splitting by itself, but this doesn't cover multiple select methods. The hooks that I've found (gnus-read-newsrc-el-hook and gnus-get-new-news-hook), but I'm not sure whether that's the best way to setup things. And if it is, it should be maybe added to the manual. Christoph --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEUimQV/rXmWU8TwiKw/FH9ZgPNTUFAlmN+MoACgkQw/FH9ZgP NTVGZA/8D4EhLZ4qiM1YKZ5C4+1/0WjgP92TmP8OoTCn+NIDGBLyoPbSg51xCiOI zh/31u44dk9KXnEaioWfBd0RzYT3QmetMTnF5VDKX8uvUOv+IlpeuV6zGvktk+cB eO8AdiubjThGlD4NhIiFonDimoSMY0FZZkTkGePj1oOGeunmgt7XMigbLE6TchB+ uBwpZyp50ISrUllCvl/bPUaYa1Xc9BAxWsZUyAv+2NxkcgY8KotWM7nMTd39R7cI StsXlxH4EMpMynTW0RZYPPt3+CQghM88KUiyQ2SQtGYNvS/diT5OQvQGzzA84XsZ ux/xX7e6NOEwdx6MLkxxPnAe9NgAuRYheC4qSmdR1+cpkp19YD7Ib9KFalH5MZXf X8VPqG7uUYLLuOKZzo5lk0z7tzblPp1LwfUGvvOCRyaQh+1z83WXj0qhCbLuBzH+ E8wilqVn88iwY0d36J5XmYGzGUtFa0nbbjkHgJ+SqgPr8qHHRwa8sLoK4yhbh2bN yIoYdgg0PkY9e1ASbETWCIPWlq1TahmZbESv/ZUdX7bOBj/+hhanYwJQkBX2mDHP jncTY8e/d6myqteoyX/CLUTh9sr5BPy9CZ6+XuwaffUDfZuLa7XeS5s+nQoyQIfF sv5hvJgNWn/AmnRPeQnqxpdM5ZGwXVLIcsCcIyq4PN+tXQKqrXA= =37FY -----END PGP SIGNATURE----- --=-=-=-- --===============8978227639854167441== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline