Gnus development mailing list
 help / color / mirror / Atom feed
From: Danny Siu <dsiu@adobe.com>
Subject: Re: Gnus and Outlook and spam?
Date: Thu, 23 Oct 2003 15:31:48 -0700	[thread overview]
Message-ID: <ullrbk2ln.fsf@adobe.com> (raw)
In-Reply-To: <76y8vbonov.fsf@newjersey.ppllc.com>

Jake Colman writes:

  TZ> Sure.  Check out the manual.  You can cooperate with anti-spam
  TZ> packages or use the spam-stat.el package to do all the stats inside
  TZ> Emacs.

  Jake> But spam-stats is not for nnimap, if I read it correctly.

I have been using spam-stats with nnimap and see no problem with it.  Ted
has gone a great job on spam support in guns.

  Jake> It sounds like I would want to install bogofilter and use the
  Jake> nnimap-split-fancy to pass the incoming email through bogofilter.

  Jake> I already have a long nnimap-split-rule variable definition.  Do I
  Jake> convert from nnimap-split-rule to nnimap-split-fancy?  Is that
  Jake> documented anywhere?

here is my spam, imap, mail split setup in .gnus.  Of course, I customized
'G C' my "spam" group and make sure "gnus-group-spam-classification-spam" is
set and "Spam Summary Exit Processor" is
"gnus-group-spam-exit-processor-stat" so that spam-stat is learning.

(require 'spam-stat)
(require 'spam)
(spam-stat-load)
(setq spam-use-stat t)

(setq nnmail-split-methods nil)
(setq nnimap-split-rule 'split-dannys-mail)

(defun danny-nnmail-spam-split ()
  (save-excursion
    (condition-case nil
        (let* ((s (spam-split)))
          (if s (list s) nil))
      (error nil))))

(defun split-dannys-mail ()
  "The way I want to split my mails."
  (goto-char (point-min))
  (cond

   ;; reply-to and follow-up mail should go with parent!
   ((danny-registry-split-fancy-with-parent))

   ;; remove spam
   ((danny-nnmail-spam-split))

   ;; Gnus
   ((re-search-forward "^\\(To\\|[Cc][Cc]\\):.*ding@\\(gnus.org\\|ifi.uio.no\\|hpc.uh.edu\\)" nil t)
    (list "GNUS"))

   ...
   ...))

-- 
Danny Siu




  parent reply	other threads:[~2003-10-23 22:31 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-10-22 20:58 Kai Grossjohann
2003-10-23  0:55 ` Jody Klymak
2003-10-23 16:06 ` Ted Zlatanov
2003-10-23 16:22   ` Jake Colman
2003-10-23 17:38     ` Ted Zlatanov
2003-10-23 17:42       ` Jake Colman
2003-10-23 19:29         ` Ted Zlatanov
2003-10-24 13:35           ` Jake Colman
2003-10-27 20:59             ` Ted Zlatanov
2003-10-28 15:25               ` Jake Colman
2003-10-28 15:57                 ` Ted Zlatanov
2003-10-23 22:31         ` Danny Siu [this message]
2003-10-23 19:38     ` spam.el and IMAP (was: Gnus and Outlook and spam?) Reiner Steib
2003-10-23 22:00       ` spam.el and IMAP Ted Zlatanov
2003-10-24 12:53         ` Reiner Steib
2003-10-24 13:55         ` Adrian Lanz
2003-10-26 12:41         ` Adrian Lanz
2003-10-27  7:30         ` Adrian Lanz
2003-10-27 23:34           ` Ted Zlatanov
2003-10-27  8:23         ` Adrian Lanz

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

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

  git send-email \
    --in-reply-to=ullrbk2ln.fsf@adobe.com \
    --to=dsiu@adobe.com \
    /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 NNTP newsgroup(s).