From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80468 Path: news.gmane.org!not-for-mail From: david.goldberg6@verizon.net (Dave Goldberg) Newsgroups: gmane.emacs.gnus.general Subject: Re: spam.el: asking about removing spam-use-BBDB Date: Tue, 01 Nov 2011 21:14:29 -0400 Message-ID: <84obwviave.fsf@davestoy.home> References: <8739ezafwf.fsf@lifelogs.com> <84wrcbm45l.fsf@davestoy.home> <848vocvp25.fsf@davestoy.home> <87y5wcpi1y.fsf@ericabrahamsen.net> <87y5wajzao.fsf@lifelogs.com> <84ehy1kem3.fsf@davestoy.home> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1320196514 30076 80.91.229.12 (2 Nov 2011 01:15:14 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 2 Nov 2011 01:15:14 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28753@lists.math.uh.edu Wed Nov 02 02:15:10 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RLPQ4-00028e-IK for ding-account@gmane.org; Wed, 02 Nov 2011 02:15:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1RLPPr-00005a-9h; Tue, 01 Nov 2011 20:14:55 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1RLPPo-00005L-OG for ding@lists.math.uh.edu; Tue, 01 Nov 2011 20:14:52 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1RLPPn-0005Re-GN for ding@lists.math.uh.edu; Tue, 01 Nov 2011 20:14:52 -0500 Original-Received: from vms173017pub.verizon.net ([206.46.173.17]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1RLPPl-0001L6-1y for ding@gnus.org; Wed, 02 Nov 2011 02:14:49 +0100 Original-Received: from davestoy.home.verizon.net ([unknown] [173.48.207.8]) by vms173017.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LU00035YE46ZDLU@vms173017.mailsrvcs.net> for ding@gnus.org; Tue, 01 Nov 2011 20:14:31 -0500 (CDT) X-Face: W!bie|rYVd43O:2CkHTb*~s5}Yzx30X<@6Tq_bnP56Hp!xX4sVl4tgYRirjRcke\wfY!JJ9 i?]VIUJicJzq2\!3%7$5R%wi!R[.]Va97q User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.1 (gnu/linux) X-Spam-Score: -3.1 (---) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80468 Archived-At: >> 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