Gnus development mailing list
 help / color / mirror / Atom feed
From: Jack Twilley <jmt+usenet@twilley.org>
Subject: Re: bbdb and nnmail-split-fancy
Date: Fri, 05 Apr 2002 23:39:51 -0800	[thread overview]
Message-ID: <86zo0h5l88.fsf@duchess.twilley.org> (raw)
In-Reply-To: <g08r8lw1ja4.fsf@zzz.cisco.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


There are more sophisticated ways to get nnmail-split-fancy to work
with bbdb.

I have records for people that have gnus-private values and records
for mailing lists that have gnus-public values.  It's bbdb-gnus.el in
bbdb.  Very straightforward stuff.  Here's my nnmail-split-fancy:

 '(| ("mail.gnus-warning" "duplication of messages" "duplicate")
     (any "jmt\\+usenet@.*"
	  (| ("subject" "re:.*" "mail.misc")
	     ("references" ".*@.*" "mail.misc")
	     "mail.spam"))
     (any "usenet@.*" "mail.spam")
     ;; other mail
     (from "Cron Daemon" "mail.cron")
     (from mail "mail.warning")
     (from "root" "mail.root")
     ;; people and mailing lists
     (: jmt-bbdb-gnus-split-fancy)
     ;; diplomacy stuff
     (: judge-split)
     ;; and everything else...
     (to "jmt" "mail.misc")
     "mail.spam")

Short and sweet.  If I implement any more sophisticated attempts at
reducing spam, I'll do it with elisp and (: ...) since that looks easy
enough.

Here's the wrapper function:

(defun jmt-bbdb-gnus-split-fancy () 
  "this is just a boring wrapper function"
  (let ((x (bbdb/gnus-split-method)))
    (when x (cons '& x))))

Here's two example records:

judge-maint mailing list
            net: judge-maint@diplom.org, judge-maint@igo.org
    gnus-public: list.judge-maint .*
    last-access: 2002-03-28

Lisa-Marie Presley
            net: lisa_presley@hotmail.com
   gnus-private: people.Lisa_Presley
    last-access: 2002-03-28

Hope that helps!

Jack.
- -- 
Jack Twilley
jmt at twilley dot org
http colon slash slash www dot twilley dot org slash tilde jmt slash
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (FreeBSD)
Comment: For info see http://www.gnupg.org

iD8DBQE8rqZOGPFSfAB/ezgRAsV+AKDA+QcuQ0bTEZJ/bQr62KX6WAXaJwCcDNNZ
IuftojZw+udc7clHuPMS1Uk=
=eK3l
-----END PGP SIGNATURE-----



  parent reply	other threads:[~2002-04-06  7:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-03 22:58 Michael Cook
2002-04-04  0:49 ` David Z Maze
2002-04-06  7:07 ` Michael Cook
2002-04-06  7:39 ` Jack Twilley [this message]
2002-04-06 17:20   ` Michael Cook
2002-04-06 20:46     ` Jack Twilley

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=86zo0h5l88.fsf@duchess.twilley.org \
    --to=jmt+usenet@twilley.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 NNTP newsgroup(s).