Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Edouard Debry <>
Subject: Split mail
Date: Wed, 23 Feb 2022 23:40:04 +0100	[thread overview]
Message-ID: <> (raw)


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 ?


             reply	other threads:[~2022-02-27 15:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-23 22:40 Edouard Debry [this message]
2022-02-27 16:17 ` Eric Abrahamsen
2022-03-02 22:21   ` Edouard Debry

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).