Well, I never got this working with nnimap-split-methods
directly, but I was able to get what I wanted by using nnmail-split-methods
and then setting nnimap-split-methods
to default
, like so:
(setq gnus-secondary-select-methods '((nnimap "MyMail" (nnimap-address "imap.example.com") (nnimap-server-port 993) (nnimap-stream-type ssl) (nnir-search-engine imap) (nnimap-inbox "INBOX") (nnimap-split-methods default)))) (setq nnmail-split-methods '(("gerrit" "X-Gerrit-MessageType.*") ("list.\\1" "From:.* \\(.*\\)-list@majordomo.com") ("list.lkml.kernel" "X-Mailing-List:.*linux-kernel@vger\\.kernel\\.org") ("list.linux-arm-kernel" "Cc:.*linux-arm-kernel@lists\\.infradead\\.org") ("mail.other" "")))