[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Split mail
From: |
Edouard Debry |
Subject: |
Split mail |
Date: |
Wed, 23 Feb 2022 23:40:04 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (windows-nt) |
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 ".*emacs-orgmode@gnu.org" "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
emacs-orgmode@gnu.org, 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 ".*emacs-orgmode@gnu.org" "orgmode")
"nnimap+gmail:INBOX"))
into
(nnimap-split-fancy
'(
(to ".*emacs-orgmode@gnu.org" "orgmode")
"INBOX"))
then, I get the error :
Error in ‘nnmail-split-methods’; using ‘bogus’ mail group: (wrong-type-argument
arrayp (| (to ".*emacs-orgmode@gnu.org" "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 ?
Regards
- Split mail,
Edouard Debry <=