* bbdb auto create, GNUS-5.2.25, BBDB-1.50, XEmacs 19.14
@ 1996-07-03 9:03 Richard Taylor
1996-07-03 23:53 ` Sudish Joseph
1996-07-08 23:54 ` Colin Rafferty
0 siblings, 2 replies; 3+ messages in thread
From: Richard Taylor @ 1996-07-03 9:03 UTC (permalink / raw)
Hi
I am trying to get BBDB to auto create entries when I read mail in
certain groups. I have the following in my ding setup:
(defun my-select-group-hook ()
(setq bbdb/news-auto-create-p
(cond ((string-match "mail\.misc" gnus-newsgroup-name) t)
((string-match "mail\.ossg" gnus-newsgroup-name) t)
(t nil))))
(add-hook 'gnus-select-group-hook 'my-select-group-hook t)
(add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus t)
For some reason my hook is being ignored (or I have got the logic
wrong) and all addresses are being auto created in all groups.
Can anyone see what I am doing wrong ?
I thought it might be the order in which I do the add-hooks but I have
tried the other way round and that does the same thing.
Richard
--
------------------------------
Richard Taylor, N129, DRA Malvern, St Andrews Rd, Malvern, Worcs. WR14 3PS. UK.
Tel: +44 1684 896028; Fax: +44 1684 894303; Email: rjt@rivers.dra.hmg.gb
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: bbdb auto create, GNUS-5.2.25, BBDB-1.50, XEmacs 19.14
1996-07-03 9:03 bbdb auto create, GNUS-5.2.25, BBDB-1.50, XEmacs 19.14 Richard Taylor
@ 1996-07-03 23:53 ` Sudish Joseph
1996-07-08 23:54 ` Colin Rafferty
1 sibling, 0 replies; 3+ messages in thread
From: Sudish Joseph @ 1996-07-03 23:53 UTC (permalink / raw)
Cc: ding
In article <q191d1lndn.fsf@rivers.dra.hmg.gb>,
Richard Taylor <rjt@rivers.dra.hmg.gb> writes:
> (add-hook 'gnus-select-group-hook 'my-select-group-hook t)
> (add-hook 'gnus-startup-hook 'bbdb-insinuate-gnus t)
> For some reason my hook is being ignored (or I have got the logic
> wrong) and all addresses are being auto created in all groups.
Try using gnus-summary-mode-hook, it's run before any other group
specific hook. It's also guaranteed to be in the correct buffer for
buffer-local variables.
This may or may not cure your problem, but in general it's almost
always better to use gnus-summary-mode-hook for most stuff.
--
Sudish
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: bbdb auto create, GNUS-5.2.25, BBDB-1.50, XEmacs 19.14
1996-07-03 9:03 bbdb auto create, GNUS-5.2.25, BBDB-1.50, XEmacs 19.14 Richard Taylor
1996-07-03 23:53 ` Sudish Joseph
@ 1996-07-08 23:54 ` Colin Rafferty
1 sibling, 0 replies; 3+ messages in thread
From: Colin Rafferty @ 1996-07-08 23:54 UTC (permalink / raw)
On 03 Jul 1996, Richard Taylor <rjt@rivers.dra.hmg.gb> said:
> I am trying to get BBDB to auto create entries when I read mail in
> certain groups. I have the following in my ding setup:
> (defun my-select-group-hook ()
> (setq bbdb/news-auto-create-p
> (cond ((string-match "mail\.misc" gnus-newsgroup-name) t)
> ((string-match "mail\.ossg" gnus-newsgroup-name) t)
> (t nil))))
> (add-hook 'gnus-select-group-hook 'my-select-group-hook t)
The problem is that you have to set it in the *Article* buffer. I do
the following:
(make-variable-buffer-local 'bbdb/news-auto-create-p)
(add-hook 'gnus-summary-mode-hook
(lambda ()
(save-excursion
(let ((auto (and (string-match "^nnml:" group)
'bbdb-ignore-some-messages-hook)))
(setq bbdb/news-auto-create-p auto)
(set-buffer gnus-article-buffer)
(setq bbdb/news-auto-create-p auto)))))
--
Colin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1996-07-08 23:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-07-03 9:03 bbdb auto create, GNUS-5.2.25, BBDB-1.50, XEmacs 19.14 Richard Taylor
1996-07-03 23:53 ` Sudish Joseph
1996-07-08 23:54 ` Colin Rafferty
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).