X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/blobdiff_plain/48c5ccb30f4b590329b6509675e0ac8a06e442f6..f23fd56d2b2f923a22e79a764fc26bbc604861eb:/dot/emacs diff --git a/dot/emacs b/dot/emacs index 6dbbbed..d6b4370 100644 --- a/dot/emacs +++ b/dot/emacs @@ -187,9 +187,11 @@ (trap (bbdb-initialize 'gnus 'sendmail 'message))) (setq bbdb-file "~/etc/state/bbdb" bbdb-north-american-phone-numbers-p nil - bbdb/news-auto-create-p (lambda () - (string-match "^nnimap\\+" - gnus-newsgroup-name)) + bbdb/news-auto-create-p + (lambda () + (let ((group gnus-newsgroup-name)) + (and (string-match "^nnimap\\+" group) + (not (string-match ":\\(crap\\|spam\\)\\." group))))) bbdb-user-mail-names (concat "^" "\\(" "\\(mdw\\|markw\\|root\\|postmaster\\)"