From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/65164 Path: news.gmane.org!not-for-mail From: Cezar Newsgroups: gmane.emacs.gnus.general Subject: spam filtering setup Date: Sun, 09 Sep 2007 12:31:45 +0300 Message-ID: <878x7gxjzy.fsf@myhost.localdomain> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1189533454 23830 80.91.229.12 (11 Sep 2007 17:57:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2007 17:57:34 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M13677@lists.math.uh.edu Tue Sep 11 19:57:30 2007 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1IV9zG-0004PX-Lw for ding-account@gmane.org; Tue, 11 Sep 2007 19:57:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1IV9xE-0003k5-Oh; Tue, 11 Sep 2007 12:55:16 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1IUruw-00079U-4F for ding@lists.math.uh.edu; Mon, 10 Sep 2007 17:39:42 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.67) (envelope-from ) id 1IUrus-0000Un-5k for ding@lists.math.uh.edu; Mon, 10 Sep 2007 17:39:42 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1IUruf-0006MB-00 for ; Tue, 11 Sep 2007 00:39:25 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IUMdL-000520-Qd for ding@gnus.org; Sun, 09 Sep 2007 15:17:46 +0200 Original-Received: from dyn-86.105.65.100.tm.upcnet.ro ([86.105.65.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Sep 2007 15:15:24 +0200 Original-Received: from cezar by dyn-86.105.65.100.tm.upcnet.ro with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 09 Sep 2007 15:15:24 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 112 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: dyn-86.105.65.100.tm.upcnet.ro User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/23.0.0 (gnu/linux) Cancel-Lock: sha1:VpZdYuHPGzc3Et2hlVbif3j8Fts= X-Spam-Score: -1.1 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:65164 Archived-At: Hello, I have read the manual a few times by now but I still can't make my gnus filter spam and I don't know what am I doing wrong. The problem is I still get a lot of spam and think filtering doesn't actually happen. I am using emacs from cvs and gnus 5.11. Here is my .gnus.el : (require 'bbdb) (bbdb-initialize 'gnus 'message) (add-hook 'message-setup-hook 'bbdb-define-all-aliases) (setq gnus-select-method '(nntp "news.gmane.org")) (add-to-list 'gnus-secondary-select-methods '(nntp "news.readfreenews.net")) (add-to-list 'gnus-secondary-select-methods '(nnml "private")) (setq mail-sources '((file :path "/var/mail/cezar") (maildir :path "/home/cezar/.maildir"))) (require 'spam) (spam-initialize) (setq spam-use-bogofilter t) (setq gnus-install-group-spam-parameters nil) (setq gnus-spam-process-newsgroups '(("nnml:.*" (gnus-group-spam-exit-processor-bogofilter gnus-group-ham-exit-processor-bogofilter))) gnus-spam-process-destinations '(("nnml:.*" "nnml:spambox")) gnus-ham-process-destinations '(("nnml:spambox" "nnml:reclassify")) spam-junk-mailgroups '("nnml:spambox") spam-split-group "nnml:spambox") (setq nnmail-split-methods 'nnmail-split-fancy) (setq nnmail-split-fancy '(| ("subject" ".*SECURITY" "WebSecurity") ("subject" ".*Webappsec" "WebSecurity") ("subject" ".*WSG" "WebStandards") (: spam-split) (to "me@mydomain.com" "Personal") (from ".*@mydomain.com" "Personal") ;; from work "mail.other")) (setq gnus-visible-headers '("^From" "^Subject" "^Date" "^Newsgroups" "^Followup-To" "^User-Agent" "^X-Newsreader" "^X-Mailer")) (setq message-send-mail-function 'smtpmail-send-it smtpmail-smtp-server "mixandgo.ro" smtpmail-auth-credentials '(("mixandgo.ro" 25 "cezar@mixandgo.ro" "askjdh983JK"))) (setq smtpmail-debug-info t smtpmail-debug-verb t) (add-hook 'message-mode-hook (function (lambda() (local-set-key (kbd "") 'bbdb-complete-name) ))) (setq gnus-message-archive-group '((if (message-news-p) "sent.news" "sent.mail"))) (defun signature-to-end-of-forwarded-message () (save-excursion (goto-char (point-min)) (re-search-forward (concat "^" (regexp-quote mail-header-separator) "$") nil t) (forward-line 1) (let* ((start (point)) (end (progn (save-excursion (re-search-forward "^------- Start of forwarded message -" nil t) (beginning-of-line) (point))))) (goto-char (point-max)) (insert-buffer-substring (current-buffer) start end) (delete-region start end)))) (add-hook 'gnus-mail-forward-hook 'signature-to-end-of-forwarded-message) (defun my-gnus-summary-view-html-alternative-in-mozilla () "Display the HTML part of the current multipart/alternative MIME message in mozilla." (interactive) (save-current-buffer (gnus-summary-show-article) (set-buffer gnus-article-buffer) (let ((file (make-temp-file "html-message-" nil ".html")) (handle (nth 3 (assq 1 gnus-article-mime-handle-alist)))) (mm-save-part-to-file handle file) (browse-url-firefox (concat "file://" file))))) (define-key gnus-summary-mode-map [?K ?M] 'my-gnus-summary-view-html-alternative-in-mozilla) ;; Rs Gnus Summary (require 'rs-gnus-summary) (rs-gnus-summary-line-initialize) ;; Alias for the content-type function: (defalias 'gnus-user-format-function-ct 'rs-gnus-summary-line-content-type) ;; Alias for the size function: (defalias 'gnus-user-format-function-size 'rs-gnus-summary-line-message-size) (setq gnus-balloon-face-0 'rs-gnus-balloon-0) (setq gnus-balloon-face-1 'rs-gnus-balloon-1) (rs-gnus-summary-tree-arrows-ascii)