info-gnus-english
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Spam-split not working for IMAP?


From: Dirk Gerrits
Subject: Spam-split not working for IMAP?
Date: Tue, 11 May 2004 18:33:21 GMT
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Hi all.

I've been using Gnus for my mail for a few days now, and I wanted to try
to enable spam-filtering.  However, now I get the message 'No buffer
named *Original Article*' when I start Gnus.  If I uncomment the (:
spam-split) line from (setq nnimap-split-fancy ...) this message does
not appear, so apparently spam-filtering is working for my POP3 account
but not for my IMAP accounts.  I reckon it's an error in my .gnus.el
file, so I included it below.

Any help would be appreciated.  Let me know if I need to provide more
data.

Regards,

Dirk Gerrits


;; Filled in later on.
(setq gnus-select-method nil
      gnus-secondary-select-methods nil
      mail-sources nil)

;; MAIL SPLITTING

(setq spam-use-stat t
      spam-mark-ham-unread-before-move-from-spam-group t
      gnus-spam-process-destinations '((".*" "Junk"))
      gnus-ham-process-destinations  '((".*" "other"))
      gnus-spam-newsgroup-contents
                '(("Junk" gnus-group-spam-classification-spam)
                  (".*"   gnus-group-spam-classification-ham))
      spam-split-group "Junk"
      spam-junk-mailgroups '("Junk")

      nnimap-split-inbox '("INBOX")
      nnimap-split-download-body t
      nnimap-split-methods nil
      nnimap-split-rule 'nnimap-split-fancy
      nnimap-split-fancy 
      '(| ;; Put mailing list posts in their own folders.
          (to "notus-design@lists.sourceforge.net" "INBOX.Notus")
          (to "software-mfa@yahoogroups\\.com" "Software-MFA")
          (to "langsmiths@yahoogroups\\.com" "INBOX.Langsmiths")
          (to "benelux-lispers@yahoogroups\\.com" "BeNeLux Lispers")
          (to "cl-lc@yahoogroups\\.de" "Cologne Lispniks")
          ;; Filter out spam.
;          (: spam-split) ;; If I uncomment this line, I get the error.
          )

      nnmail-split-methods nil
      nnmail-split-rule 'nnmail-split-fancy
      nnmail-split-fancy 
      '(| ;; Filter out spam.
          (: spam-split)
          ;; Non-spam goes to the harddisk.
          "other"))

(require 'spam-stat)
(require 'spam)
(spam-stat-load)

;; SMTP

(require 'smtpmail)

(setq gnus-message-archive-group
      '("nnimap+dirkgerrits:Sent"))

(setq send-mail-function           'smtpmail-send-it
      message-send-mail-function   'smtpmail-send-it
      mail-user-agent              'gnus-user-agent
      smtpmail-default-smtp-server "dirkgerrits.com"
      smtpmail-smtp-server         "dirkgerrits.com"
      smtpmail-auth-login-username "...")

(add-hook 'message-mode-hook 
          '(lambda ()
             (setq fill-column 72)
             (turn-on-auto-fill)))

;; NEWS

(setq gnus-select-method '(nntp "news.gmane.org"))

(add-to-list 'gnus-secondary-select-methods 
             '(nntp "news.chello.nl"))
(add-to-list 'gnus-secondary-select-methods 
             '(nntp "news.tue.nl"))

;; IMAP

(add-to-list 'gnus-secondary-select-methods 
             '(nnimap "dirkgerrits"
                      (nnimap-server-port 143)
                      (nnimap-address "dirkgerrits.com")
                      (nnimap-authinfo-file "~/.authinfo")))

(add-to-list 'gnus-secondary-select-methods 
             '(nnimap "homeip"
                      (nnimap-server-port 143)
                      (nnimap-address "gerrits.homeip.net")
                      (nnimap-authinfo-file "~/.authinfo")
                      (nnimap-list-pattern ("INBOX" "INBOX.*"))))

;; POP3

(add-to-list 'gnus-secondary-select-methods 
             '(nnml ""))

(add-to-list 'mail-sources
             '(pop :server "mail.chello.nl"
                   :user "..."
                   :password "..."))


reply via email to

[Prev in Thread] Current Thread [Next in Thread]