dot/gnus-local.el.distorted: Set more splitting variables.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 3 Jun 2015 22:22:41 +0000 (23:22 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 3 Jun 2015 22:22:41 +0000 (23:22 +0100)
  * Configure both the `nnmail-...' and `nnimap-...' versions of the
    variables.  That way, `gnus-summary-respool-...' actually work on
    IMAP mailboxes.

  * Set the new `nnimap-split-methods' variable, because `nnimap-split-
    rule' has been eliminated in later versions.

dot/gnus-local.el.distorted

index 3d8e1b8..0a9196d 100644 (file)
 ;; General splitting configuration.
 (setq nnimap-split-inbox '("INBOX" "to.split")
       nnimap-split-rule 'nnimap-split-fancy
-      nnimap-split-crosspost t
+      nnimap-split-methods 'nnimap-split-fancy
+      nnmail-split-methods 'nnmail-split-fancy
       nnimap-split-predicate "UNDELETED"
+      nnimap-split-crosspost t
+      nnmail-split-crosspost t
       nnmail-split-fancy-match-partial-words nil)
 
 ;; Automatic expiry for particular groups.
@@ -70,7 +73,7 @@
         ("From" mdw-from-address))))
 
 ;; The actual splitting rules.
-(setq nnimap-split-fancy
+(setq nnmail-split-fancy
       '(| (to "\\<\\(news\\|newsmaster\\|usenet\\)@" "admin.news" t)
          (to "\\<hostmaster@" "admin.dns" t)
          (to "\\<postmaster@" "admin.mail" t)
          (from "@libertymail\\.org\\.uk" "spam.liberty" t)
          (from "@openrightsgroup\\.org" "spam.org" t)
          (from "@tshirthell\\.com" "spam.tshirt-hell" t)
-         "mail.misc"))
+         "mail.misc")
+      nnimap-split-fancy nnmail-split-fancy)
 
 ;;;----- That's all, folks --------------------------------------------------