gnus nnimap-split-Methods teilt meine Mail nicht auf

994
mgalgs

Ich versuche, nnimap-split-methodseingehende Mails in verschiedene Gruppen aufzuteilen, aber es funktioniert nicht. Selbst mit dieser einfachen Splitregel:

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

Alle meine Mails werden in angezeigt mail.misc. Ich habe auch versucht, ".*"mit zu ersetzen, ""da die Dokumentation besagt, dass das letzte Element immer sein sollte "". Was mache ich falsch hier?

3

1 Antwort auf die Frage

3
mgalgs

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" "")))