Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to use nnimap-split-methods to split incoming mail into different groups, but it's not working. Even with this simple split rule:

(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 '(("mail.pizza" ".*"))))))

all my mail shows up in mail.misc. I also tried replacing ".*" with "" since the documentation says the last element should always be "". What am I doing wrong here??

share|improve this question

1 Answer 1

up vote 2 down vote accepted

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" "")))
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.