The following message is a courtesy copy of an article
that has been posted to gnu.emacs.gnus as well.
hi all,
i am using the following function to switch between bbdb files:
(defun bbdb-switch-to-other-bbdb-file (&optional db dont-ask)
(interactive)
; (bbdb-save-db)
(unless db
(setq db (if dont-ask (expand-file-name "~/.bbdb")
(read-file-name "Use bbdb database "))))
(setq bbdb-file db
bbdb-buffer (get-file-buffer db)))
1. do i miss something here or is it really that simple: just changing
the two variables bbdb-file and bbdb-buffer? has bbdb already a feature
that deals with multiple bbdb files?
2. with gnus i want to use "~/.bbdb" in most groups and
e.g. "~/.huge-mailing-list" in the group nnml:huge-mailing-list. so
something like the following should do the job:
(add-hook 'gnus-select-group-hook
'(lambda ()
(let ((bbdb (cond ((string-match "huge-mailing-list"
(gnus-group-group-name))
"~/.huge-mailing-list")
(t "~/.bbdb"))))
(bbdb-switch-to-other-bbdb-file bbdb t))))
the only problem is that the function gnus-group-group-name produces
nil here!?
thanx a lot for help,
tomy
--
Visit http://www.ibc2002.uni-freiburg.de
for the latest information on IBC 2002
_______________________________________________
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/