Gnus development mailing list
 help / color / mirror / Atom feed
From: david.goldberg6@verizon.net (Dave Goldberg)
To: ding@gnus.org
Subject: Re: spam.el: asking about removing spam-use-BBDB
Date: Tue, 01 Nov 2011 21:14:29 -0400	[thread overview]
Message-ID: <84obwviave.fsf@davestoy.home> (raw)
In-Reply-To: <84ehy1kem3.fsf@davestoy.home>

>> I'll support the BBDB backend to spam.el.  I just need to fix the
>> `bbdb-search-simple' bug, it should work fine otherwise.

> Well like I said, since a recent update, it's almost having the
> opposite effect as what I want with many messages from people in .bbdb
> going into the spam group.  I'm more than happy to try to help debug
> this, but I don't know where to begin.

Found it.

The recent change to spam.el does this:

              (if (fboundp 'bbdb-search)
                  (bbdb-search (bbdb-records) who) ;; v3
                (bbdb-search-simple nil who)) ;; v2

So it's assuming that if bbdb 2.* is in use, (fboundp 'bbdb-search) should return nil.  C-h f bbdb-search gives this:

   bbdb-search is a Lisp macro in `bbdb-com.el'.

   (bbdb-search records &optional name company net notes phone)
   [...]

I don't know if a macro is supposed to cause fboundp to return t or if I've somehow completely screwed up my emacs (23.1.1), or if there's some difference in bbdb 2.36 (sourceforge CVS) from what you expected to find,  but the above explains why bbdb look ups are not working - the search is not set up right.  bbdb-search-simple is a part of my bbdb, so for now, my trivial fix is:

(if (fboundp 'bbdb-search-simple)
    (bbdb-search-simple nil who) ;; v2
  (bbdb-search (bbdb-records) who)) ;; v3

Obviously I have no clue if that would continue to work as desired with bbdb v3, though.

-- 
Dave Goldberg
david.goldberg6@verizon.net



  reply	other threads:[~2011-11-02  1:14 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-11 12:09 Ted Zlatanov
2011-10-12  0:42 ` Dave Goldberg
2011-10-22 18:50   ` Dave Goldberg
2011-10-23  2:18     ` Eric Abrahamsen
2011-10-24  2:22       ` Dave Goldberg
2011-10-24  9:21         ` Richard Riley
2011-10-24 13:24           ` Ted Zlatanov
2011-10-24 13:26       ` Ted Zlatanov
2011-10-25  2:08         ` Dave Goldberg
2011-11-02  1:14           ` Dave Goldberg [this message]
2011-11-03 21:45             ` Ted Zlatanov
2011-11-09 14:20               ` Ted Zlatanov
2011-11-11 16:29                 ` Dave Goldberg

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=84obwviave.fsf@davestoy.home \
    --to=david.goldberg6@verizon.net \
    --cc=ding@gnus.org \
    /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).