emacs: gnus: add fancy splitting rules for uw account
authorAmin Bandali <bandali@gnu.org>
Sat, 25 May 2019 22:42:29 +0000 (18:42 -0400)
committerAmin Bandali <bandali@gnu.org>
Sat, 25 May 2019 22:42:29 +0000 (18:42 -0400)
.emacs.d/init.el

index d55fb70..b0a340d 100644 (file)
@@ -1612,7 +1612,16 @@ For disabling the behaviour for certain buffers and/or modes."
              (nnimap-address "127.0.0.1")
              (nnimap-server-port 143)
              (nnimap-authenticator plain)
-             (nnimap-user "abandali@uw.local"))
+             (nnimap-user "abandali@uw.local")
+             (nnimap-inbox "INBOX")
+             (nnimap-split-methods 'nnimap-split-fancy)
+             (nnimap-split-fancy (|
+                                  (: gnus-registry-split-fancy-with-parent)
+                                  ;; se463-s19
+                                  ("subject" "SE\\s-?463" "course.se463-s19")
+                                  (from "\\(SE\\s-?463\\|Gema\\)" "course.se463-s19")
+                                  ;; catch-all
+                                  "INBOX")))
      (nnimap "csc"
              (nnimap-stream plain)
              (nnimap-address "127.0.0.1")