From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sebastien Vauban Newsgroups: gmane.emacs.bugs Subject: bug#20610: 25.0.50; Gnus fancy mail splitting not working anymore Date: Fri, 22 May 2015 23:36:23 +0200 Organization: Sebastien Vauban Message-ID: <86vbfkpa5k.fsf@example.com> References: <868uckoi50.fsf@example.com> <86oalglaas.fsf@example.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1432330645 29428 80.91.229.3 (22 May 2015 21:37:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 22 May 2015 21:37:25 +0000 (UTC) Cc: 20610-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org To: Katsumi Yamaoka , Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Fri May 22 23:37:16 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Yvucz-0005Lx-A4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2015 23:37:13 +0200 Original-Received: from localhost ([::1]:36027 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvucy-0003OT-2Y for geb-bug-gnu-emacs@m.gmane.org; Fri, 22 May 2015 17:37:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvuct-0003OD-Ga for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Fri, 22 May 2015 17:37:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yvuco-0006bX-J2 for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Fri, 22 May 2015 17:37:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:43282) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yvuco-0006b4-GW for bug-gnu-emacs-mXXj517/zsQ@public.gmane.org; Fri, 22 May 2015 17:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Yvucn-0006oa-SD; Fri, 22 May 2015 17:37:01 -0400 X-Loop: help-debbugs-mXXj517/zsQ@public.gmane.org Resent-From: Sebastien Vauban Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org, bugs-smP1P7uqpqc@public.gmane.org Resent-Date: Fri, 22 May 2015 21:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs-mXXj517/zsQ@public.gmane.org X-GNU-PR-Message: followup 20610 X-GNU-PR-Package: emacs,gnus X-GNU-PR-Keywords: Original-Received: via spool by 20610-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org id=B20610.143233059426130 (code B ref 20610); Fri, 22 May 2015 21:37:01 +0000 Original-Received: (at 20610) by debbugs.gnu.org; 22 May 2015 21:36:34 +0000 Original-Received: from localhost ([127.0.0.1]:53256 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YvucL-0006nN-Sc for submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Fri, 22 May 2015 17:36:34 -0400 Original-Received: from dd5e0353a.access.telenet.be ([213.224.53.58]:39823 helo=mail.missioncriticalit.com) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YvucJ-0006mr-P5 for 20610-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org; Fri, 22 May 2015 17:36:32 -0400 Original-Received: from MUNDANEUM (unknown [10.10.4.62]) by mail.missioncriticalit.com (Postfix) with ESMTPS id D54BC500C6C; Fri, 22 May 2015 23:36:24 +0200 (CEST) X-Url: Under construction... X-Archive: encrypt In-Reply-To: (Sebastien Vauban's message of "Thu, 21 May 2015 13:51:12 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) X-BeenThere: debbugs-submit-ubl+/3LiMTaZdePnXv/OxA@public.gmane.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs-mXXj517/zsQ@public.gmane.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.bugs:103069 Archived-At: Sebastien Vauban writes: > Katsumi Yamaoka writes: >> On Tue, 19 May 2015 14:39:29 -0400, Stefan Monnier wrote: >>> I think we need some help from the Gnus guys here, >> >> (featurep 'bbdb-gnus) ;; Type `C-j' at the end of the form. > > It _is_ loaded; it returns `t'. [...] Both versions of Emacs read my > `~/.gnus' file and load the `bbdb-gnus' library found at > `~/.emacs.d/elpa/bbdb-20140830.2031/bbdb-gnus.elc'. I'm progressing -- a bit. I just found out that, adding good ol' messages, the conditional code is well executed (as already said)... --8<---------------cut here---------------start------------->8--- (message ">>> >>> %S <<< <<<" nnimap-split-methods) (when (require 'bbdb-gnus) (message ">>> >>> Inside! <<< <<<") ;; Split function to use (sorting mails into groups using BBDB). (setq nnimap-split-methods 'nnimap-split-fancy) ;; Specify how to split mail. (setq nnimap-split-fancy ; vs `nnmail-split-fancy'? '(| ; Split to the *first* match. ;; Invoke BBDB. (: (lambda () (car (bbdb/gnus-split-method)))) ;; Catch spam. ("X-Spam-Status" "[Yy]es" "INBOX.Spam") ;; Undecided. "INBOX")) ;; For records which don't have `gnus-private' set, the rules in ;; `split-fancy' are invoked. (setq bbdb/gnus-split-default-group nil)) (message ">>> >>> %S <<< <<<" nnimap-split-methods) --8<---------------cut here---------------end--------------->8--- gives: --8<---------------cut here---------------start------------->8--- >>> >>> nil <<< <<< >>> >>> Inside! <<< <<< >>> >>> nnimap-split-fancy <<< <<< --8<---------------cut here---------------end--------------->8--- ... but, in Emacs 25.0, _after having started Gnus_, when I type `C-h v nnimap-split-methods', I get `nil'!!! And similarly for `nnimap-split-fancy'... So, these variables gets reinitialized after my code is run... How? Why? In Emacs 25, if I reevaluate the above 2 vars (`nnimap-split-methods' and `nnimap-split-fancy'), the mail splitting is still not working, though `B t' indicates it would go to the right mailbox! Why?? Another difference with Emacs 24.5: for these 3 messages to be evaluated correctly, I had to explicitly add a `require 'nnimap' before the first call to `message'. Otherwise, I had an "Error in ~/.gnus: nnimap-split-methods"... Why is the variable not defined (I guess it means that) in Emacs 24.5 and well in Emacs 25 -- without the explicit call to nnimap? Do the above ring a bell to someone? I've seen that the nnimap vars are defined thru `defvoo' calls. I wasn't aware of such a macro, and don't know yet its real effects... Best regards, Seb -- Sebastien Vauban