;; LEG21082005
(setq gnus-treat-display-smileys t)
(setq gnus-verbose-backends 10)
(setq gnus-verbose 10)

(setq message-subject-re-regexp
      "^\\(\\(\\([Rr][Ee]\\|[Ss][Vv]\\|[Aa][Ww]\\): *\\)+\\)")

;; Spam.el Configuration
(require 'spam)
(spam-initialize)

(setq nnimap-split-crosspost nil)
(setq nnimap-split-inbox '("INBOX" "INBOX/Magma"))
;;(setq nnimap-split-predicate "ALL")
(setq nnimap-split-predicate "UNDELETED")

(setq nnimap-split-rule   'nnmail-split-fancy
      nnmail-split-fancy
      '(| 

;; Logcheck
        ("Subject" "\\(.*\\)?\\..*\\..* ..../../.. ..:.. system check" "INBOX/adm-logcheck-\\1")
...
          ("To" "webmaster@ain.org.ni" "INBOX/adm-webmaster-ain")

;; Online Shopping

          ("From" ".*@newvisions.at" "INBOX/Shopping")

;; Bounces
        ("To" "postmaster@.*\\.?magma\\.com\\.ni" "INBOX/adm-Postmaster-Magma")
        ("From" "MAILER-DAEMON@.*\\.?magma\\.com\\.ni" "INBOX/adm-Postmaster-Magma")

        ;; Don't kid me: I do not use this address anymore
        ("From" ".*MAILER-DAEMON@.*" ("To" "jorge_lehner@gmx.net" junk))

        ("From" "Mail .*" "INBOX/adm-Postmaster")
        ("Subject" ".*Mail.*" "INBOX/adm-Postmaster")



;; Filter Spam locally
          (: spam-split)

          nil)
      ;; set the two variables to the same value
      nnimap-split-fancy nnmail-split-fancy
      )