Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
* Split mail
@ 2022-02-23 22:40 Edouard Debry
  2022-02-27 16:17 ` Eric Abrahamsen
  0 siblings, 1 reply; 3+ messages in thread
From: Edouard Debry @ 2022-02-23 22:40 UTC (permalink / raw)
  To: info-gnus-english


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 ""))
            (nnimap "gmail"
                    (nnimap-inbox "nnimap+gmail:INBOX")
	                (nnimap-address "")
	                (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")
                       (to ".*" "orgmode")
                    (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, 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, 

   (to ".*" "orgmode")

   (to ".*" "orgmode")

then, I get the error :

Error in ‘nnmail-split-methods’; using ‘bogus’ mail group: (wrong-type-argument arrayp (| (to ".*" "nnimap+gmail:orgmode") "INBOX")) [39 times]

and a new folder appears on gmail server, named "bogus", with some mails
in it but which do not seem to follow the splitting rule.

What is wrong with my configuration ?


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

end of thread, other threads:[~2022-03-02 22:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-23 22:40 Split mail Edouard Debry
2022-02-27 16:17 ` Eric Abrahamsen
2022-03-02 22:21   ` Edouard Debry

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 NNTP newsgroup(s).