From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31599 invoked from network); 27 Feb 2022 16:18:05 -0000 Received: from lists.gnu.org (209.51.188.17) by inbox.vuxu.org with ESMTPUTF8; 27 Feb 2022 16:18:05 -0000 Received: from localhost ([::1]:50216 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nOMFH-0007lM-Rv for ml@inbox.vuxu.org; Sun, 27 Feb 2022 11:18:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:36450) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOMF5-0007jy-Mg for info-gnus-english@gnu.org; Sun, 27 Feb 2022 11:17:51 -0500 Received: from ciao.gmane.io ([116.202.254.214]:57850) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nOMF4-0007pJ-4p for info-gnus-english@gnu.org; Sun, 27 Feb 2022 11:17:51 -0500 Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1nOMF1-0006XX-LC for info-gnus-english@gnu.org; Sun, 27 Feb 2022 17:17:47 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: info-gnus-english@gnu.org From: Eric Abrahamsen Subject: Re: Split mail Date: Sun, 27 Feb 2022 08:17:40 -0800 Message-ID: <87ilt0i8rf.fsf@ericabrahamsen.net> References: <865yp5nr5n.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cancel-Lock: sha1:NSF711f8nIlmu87Re9ArjL5zf1U= Received-SPF: pass client-ip=116.202.254.214; envelope-from=gegu-info-gnus-english@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: info-gnus-english@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Announcements and discussions for GNUS, the GNU Emacs Usenet newsreader \(in English\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: info-gnus-english-bounces+ml=inbox.vuxu.org@gnu.org Sender: "info-gnus-english" Edouard Debry 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 ".*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] 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?)