On Tue, Sep 17 2002, Ronan Waide wrote:

> On September 17, [EMAIL PROTECTED] said:
>> In my Gnus topics for mail, I've set `bbdb/news-auto-create-p' to t,
>> whereas it's nil in newsgroups. 
[...]
> You can set bbdb/news-auto-create-p to the name of a function (per the
> documentation for this variable) 

Sorry, setting bbdb/n-a-c-p to a function is not documented in my
version (bbdb-version's value is "2.32"). Or maybe I just couldn't
find it. Or do I have to upgrade?

> that checks an exclude-list to see if the user should be added or
> not.

Thanks for this suggestion. So in principle it should look like this
(please correct me if I'm wrong):

(defun rs-bbdb-auto-create-maybe ()
  (if (string-match rs-bbb-dont-add-regex some-internal-bbdb-variable)
      nil t))
(setq bbdb/news-auto-create-p 'rs-bbdb-auto-create-maybe)

What variable `some-internal-bbdb-variable' is the right one here?

> If they should, return t, otherwise return nil.

Strange, bbdb/news-auto-create-p is already nil in this group.

> I use this myself to filter out certain things from auto-adding.

Could you show me an example?

> This is in some sense a crude solution, but I've seen this question
> in several guises in the last few years and there doesn't seem to be
> a correct programmatic answer to it. Well, not without increasing
> the number of switches and knobs that control BBDB, of which I think
> there are already too many.

Well, I'm using Gnus, so I'm not afraid of having millions of
variables. ;-)

Bye, Reiner.
-- 
| Mail-Followup-To: [EMAIL PROTECTED]


-------------------------------------------------------
This SF.NET email is sponsored by: AMD - Your access to the experts
on Hammer Technology! Open Source & Linux Developers, register now
for the AMD Developer Symposium. Code: EX8664
http://www.developwithamd.com/developerlab
_______________________________________________
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to