From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: John Paul Wallington Newsgroups: gmane.emacs.help Subject: Re: dotfile spam rmail emacs Date: Mon, 25 Aug 2003 02:23:30 +0100 Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87oeyewmwd.fsf@indigo.shootybangbang.com> References: <874r06n4fd.fsf@indigo.shootybangbang.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1061775142 24869 80.91.224.253 (25 Aug 2003 01:32:22 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 25 Aug 2003 01:32:22 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Aug 25 03:32:21 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19r6DU-0005Dz-00 for ; Mon, 25 Aug 2003 03:32:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.20) id 19r6Bf-0003sl-Kg for geh-help-gnu-emacs@m.gmane.org; Sun, 24 Aug 2003 21:30:27 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!fu-berlin.de!uni-berlin.de!host217-44-221-169.range217-44.btcentralplus.COM!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 34 Original-NNTP-Posting-Host: host217-44-221-169.range217-44.btcentralplus.com (217.44.221.169) Original-X-Trace: news.uni-berlin.de 1061774695 8137310 217.44.221.169 (16 [170119]) X-Orig-Path: indigo.shootybangbang.com!news X-Attribution: jpw X-Face: R(_z-rF:grdKO.*u`n); p.i$Eiz=h^CO5eDYv"4:K@#\HN09*Ykx}}B{kF/KH}%f_o^Wp List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:12037 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:12037 Don Saklad wrote: > It didn't work yet for emacs 20.7.2 How ? What did you expect to happen and what happened instead ? > when there now are these files in the home directory > get-new-mail-for-spam-filter.el > rmail-spam-filter.el If you get "Cannot open load file" errors, then you have to add your home directory to `load-path' like so: (add-to-list 'load-path (expand-file-name "~")) > and now in the file .emacs > > (setq rmail-use-spam-filter t) > > (load "rmail-spam-filter.el") > (require 'rmail) > (load "get-new-mail-for-spam-filter.el") You also have to tell rmail-spam-library what is spam, which you do by customizing the variable `rmail-spam-definitions-alist'. My mail goes through a filter before I get it, which writes lots of guff in the headers. The spams have an X-Spam-Flag: YES header, so I just use this: (setq rmail-spam-definitions-alist '(((from . "") (to . "") (subject . "") (contents . "X-Spam-Flag: YES") (action . output-and-delete))))