Edouard Debry <[email protected]> writes: > Hello, > > I try to split my mail with gnus, without much success at the moment. > > Here is the relevant configuration section : > > > <========================================================================> > (setq gnus-select-method '(nnnil "")) > > (setq gnus-secondary-select-methods > '((nntp "gmane" (nntp-address "news.gmane.io")) > (nnimap "gmail" > (nnimap-inbox "nnimap+gmail:INBOX") > (nnimap-address "imap.gmail.com") > (nnimap-server-port "imaps") > (nnir-search-engine imap) > (nnimap-stream ssl) > (nnimap-authinfo-file "~/.authinfo.gpg") > (nnmail-expiry-target "nnimap+gmail:[Gmail]/Corbeille") > (nnmail-expiry-wait 'immediate) > (nnimap-split-predicate "UNDELETED") > (nnimap-split-fancy > '(| > (to ".*[email protected]" "orgmode") > "nnimap+gmail:INBOX")) > (nnimap-split-methods 'nnimap-split-fancy) > ))) > <========================================================================> > > As far as I understand, this should create a gnus group "orgmode" in > which gnus would move all received mails which Cc to > [email protected], because "to" searches both "To" and "Cc" fields. > > But nothing so far happens. > > If I change (nnimap-inbox "nnimap+gmail:INBOX") into (nnimap-inbox > "INBOX") and, > > (nnimap-split-fancy > '( > (to ".*[email protected]" "orgmode") > "nnimap+gmail:INBOX")) > > into > (nnimap-split-fancy > '( > (to ".*[email protected]" "orgmode") > "INBOX")) > > then, I get the error : > > Error in ‘nnmail-split-methods’; using ‘bogus’ mail group: > (wrong-type-argument arrayp (| (to ".*[email protected]" > "nnimap+gmail:orgmode") "INBOX")) [39 times]
Your entire select method config is already quoted, so there's no need to additionally quote the value of `nnimap-split-methods' or `nnimap-split-fancy'. And yes, the inbox should be a plain (unprefixed) group name. (Also, is there actually a `nnimap-authinfo-file' variable? What version of Emacs/Gnus are you using?)
