Gnus development mailing list
 help / color / mirror / Atom feed
From: Colin Rafferty <craffert@spspme.ml.com>
Subject: Re: bbdb auto create, GNUS-5.2.25, BBDB-1.50, XEmacs 19.14
Date: 08 Jul 1996 19:54:12 -0400	[thread overview]
Message-ID: <ocru3vis3mj.fsf@spssunp.spspme.ml.com> (raw)
In-Reply-To: Richard Taylor's message of 03 Jul 1996 10:03:32 +0100

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


      parent reply	other threads:[~1996-07-08 23:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-07-03  9:03 Richard Taylor
1996-07-03 23:53 ` Sudish Joseph
1996-07-08 23:54 ` Colin Rafferty [this message]

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=ocru3vis3mj.fsf@spssunp.spspme.ml.com \
    --to=craffert@spspme.ml.com \
    --cc=craffert@ml.com \
    /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).