unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: John Paul Wallington <jpw@gnu.org>
Subject: Re: dotfile spam rmail emacs
Date: Mon, 25 Aug 2003 02:23:30 +0100	[thread overview]
Message-ID: <87oeyewmwd.fsf@indigo.shootybangbang.com> (raw)
In-Reply-To: y44znhyinau.fsf@nestle.ai.mit.edu

Don Saklad <dsaklad@nestle.ai.mit.edu> 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))))

  reply	other threads:[~2003-08-25  1:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-08-24 19:24 dotfile spam rmail emacs Don Saklad
2003-08-24 21:15 ` John Paul Wallington
2003-08-25  0:38   ` Don Saklad
2003-08-25  1:23     ` John Paul Wallington [this message]
2003-08-26 21:42       ` kgold
2003-08-27  0:07         ` John Paul Wallington

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87oeyewmwd.fsf@indigo.shootybangbang.com \
    --to=jpw@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).