Announcements and discussions for Gnus, the GNU Emacs Usenet newsreader
 help / color / mirror / Atom feed
From: Kirk Strauser <kirk@strauser.com>
Subject: Re: Splitting with SpamAssassin and group parameters
Date: Tue, 20 Aug 2002 15:24:05 GMT	[thread overview]
Message-ID: <87znvhpnis.fsf@pooh.int> (raw)
In-Reply-To: <87u1lq7b82.fsf@emacswiki.org>


At 2002-08-19T22:08:45Z, Alex Schroeder <alex@emacswiki.org> writes:

> I use fancy splitting AND bbdb splitting.  Why don't you give it a try?  I
> am sure you could add gnus-group-split to the fancy splitting rules.  Here
> is some code to get you started:

Thanks for the shove in the right direction!  Here's my new splitting
algorithm:

;; ----------------------------------------
;; %%% NEW SPLIT RULES (2002-08-20)
(setq
 nnmail-split-methods        'bbdb/gnus-split-method
 bbdb/gnus-split-nomatch-function 'nnmail-split-fancy

 ;; Ideas from http://www.emacswiki.org/cgi-bin/wiki.pl?SplitMailUsingBbdb
 nnmail-split-fancy
 `(|
     ("x-spam-status" "Yes" "mail.spam")
     (: (lambda ()
	  (car (gnus-group-split))))
     "mail.misc")
)
;; ----------------------------------------

Now my mail is filter as follows:

1) Addresses matching entries in my BBDB are explicitly split into the
   group specified in `gnus.private'

2) Mails are then matched against any fancy splits I've defined

3) Next, mails are split according to the rules defined in my group
   parameters

4) Anything remaining goes to mail.misc

Thanks again, Alex!
-- 
Kirk Strauser
The Strauser Group - http://www.strausergroup.com/


      parent reply	other threads:[~2002-08-20 15:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-19 21:51 Kirk Strauser
     [not found] ` <87u1lq7b82.fsf@emacswiki.org>
2002-08-20 15:24   ` Kirk Strauser [this message]

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=87znvhpnis.fsf@pooh.int \
    --to=kirk@strauser.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).