>>>>> "Galen" == Galen Boyer <[EMAIL PROTECTED]> writes:
Galen> Is there a way to enable splitting of mail based on bbdb? Can
Galen> this be intermixed with nnmail-split-methods?
Yes, there is, and yes, it can.
I use this with my own mail. Entries for mailing lists get
gnus-public tags and entries for individuals get gnus-private tags.
If an individual with a gnus-private tag sends a message to a mailing
list with a gnus-public tag, it gets filed in the gnus-public folder.
Unfortunately, mail sent to two mailing lists each with their own
gnus-public tag doesn't get filed in both places. Ah well.
Here's the relevant parts of my setup:
;;; setup gnus
(setq
...
gnus-use-bbdb t
...
)
(require 'gnus-setup)
;;; functions
(defun jmt-bbdb-gnus-split-fancy ()
"this is just a boring wrapper function"
(let ((x (bbdb/gnus-split-method)))
(when x (cons '& x))))
(setq
...
nnmail-split-fancy
'(| ;(: nnmail-split-fancy-with-parent)
("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")
nnmail-split-methods 'nnmail-split-fancy
...
)
Galen> Thanks.
You're welcome.
Jack.
(this is one of the best parts of bbdb, IMHO)
--
Jack Twilley
jmt at twilley dot org
http colon slash slash www dot twilley dot org slash tilde jmt slash
msg02856/pgp00000.pgp
Description: PGP signature
