unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#20610: 25.0.50; Gnus fancy mail splitting not working anymore
@ 2015-05-19 12:40 Sebastien Vauban
  2015-05-19 17:35 ` Stefan Monnier
  2016-10-14 10:33 ` bug#20610: 25.1.1 " Gijs Hillenius
  0 siblings, 2 replies; 10+ messages in thread
From: Sebastien Vauban @ 2015-05-19 12:40 UTC (permalink / raw)
  To: 20610-ubl+/3LiMTaZdePnXv/OxA

While "fancy mail splitting" (section 6.4.6 of the manual) with the
`gnus-private' attribute of BBDB [1] works perfectly -- for years! --
under (Windows) Emacs 24.5 (and many previous versions), it stops
working when using Emacs 25.0.50 [2]... while (let's be explicit!) the
`.gnus' file stays strictly the same.

Here a minimal working configuration file for Emacs 24.5:

--8<---------------cut here---------------start------------->8---
(require 'gnus)

(require 'auth-source)
(setq auth-source-debug t)

;; Configure incoming mail.
(setq gnus-select-method
      '(nnimap "mail"
               (nnimap-address "mail")
               (nnimap-server-port 993)
               (nnimap-stream ssl)))

;; Name(s) of IMAP mailboxes to split mail from.
(setq nnimap-inbox "INBOX")

;; The first match in `nnmail-split-rule' found will be used.
(setq nnmail-crosspost nil)

;; BBDB (Big Brother DataBase) is loaded from my `.emacs' file.
(require 'bbdb-gnus)

;; 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
      '(|                           ; 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)

;;; .gnus ends here
--8<---------------cut here---------------end--------------->8---

I've tried numerous changes (for hours), such as:

- renaming `nnimap-split-methods' to `nnmail-split-methods' and
  `nnimap-split-fancy' to `nnmail-split-fancy', or

- moving `nnimap-inbox' and `nnimap-split-methods' (without the `setq'
  and without the quotes) inside the definition of `gnus-select-method',

with no success. In those 2 latter cases, it even stops working within
Emacs 24.5, so this seems not to be the right path...

Best regards.

[1] ~/.emacs.d/elpa/bbdb-20140830.2031/bbdb-gnus.elc

[2] GNU Emacs 25.0.50.1 (i686-pc-mingw32) of 2015-05-08 on LEG570






^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2016-10-14 10:33 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-19 12:40 bug#20610: 25.0.50; Gnus fancy mail splitting not working anymore Sebastien Vauban
2015-05-19 17:35 ` Stefan Monnier
     [not found]   ` <jwviobojwsf.fsf-monnier+emacsbugs-mXXj517/zsQ@public.gmane.org>
2015-05-19 17:57     ` Sebastien Vauban
2015-05-19 18:39       ` Stefan Monnier
2015-05-20  0:22         ` Katsumi Yamaoka
     [not found]         ` <mailman.3294.1432081389.904.bug-gnu-emacs@gnu.org>
     [not found]           ` <868uckoi50.fsf-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org>
2015-05-21 11:51             ` Sebastien Vauban
2015-07-24 14:49             ` Sebastien Vauban
     [not found]           ` <mailman.3370.1432209128.904.bug-gnu-emacs@gnu.org>
     [not found]             ` <mailman.3370.1432209128.904.bug-gnu-emacs-mXXj517/zsQ@public.gmane.org>
2015-05-22 21:36               ` Sebastien Vauban
     [not found]             ` <mailman.3483.1432330630.904.bug-gnu-emacs@gnu.org>
2015-07-24 12:46               ` Sebastien Vauban
2016-10-14 10:33 ` bug#20610: 25.1.1 " Gijs Hillenius

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).