From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80575 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: Fri, 11 Nov 2011 11:29:09 -0500 Message-ID: <84sjlusjvu.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> <84obwviave.fsf@davestoy.home> <87ty6kop7a.fsf@lifelogs.com> <87fwhxwf67.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1321029048 22768 80.91.229.12 (11 Nov 2011 16:30:48 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 11 Nov 2011 16:30:48 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28858@lists.math.uh.edu Fri Nov 11 17:30:44 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 1ROu00-0000WD-TG for ding-account@gmane.org; Fri, 11 Nov 2011 17:30:41 +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 1ROtyz-0006vt-L3; Fri, 11 Nov 2011 10:29:37 -0600 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 1ROtyw-0006vd-Mu for ding@lists.math.uh.edu; Fri, 11 Nov 2011 10:29:34 -0600 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 1ROtyu-0005co-HO for ding@lists.math.uh.edu; Fri, 11 Nov 2011 10:29:34 -0600 Original-Received: from vms173019pub.verizon.net ([206.46.173.19]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1ROtys-0007xy-Qe for ding@gnus.org; Fri, 11 Nov 2011 17:29:30 +0100 Original-Received: from davestoy.home.verizon.net ([unknown] [173.48.207.8]) by vms173019.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LUI00A1X8GLY645@vms173019.mailsrvcs.net> for ding@gnus.org; Fri, 11 Nov 2011 10:29:11 -0600 (CST) 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:80575 Archived-At: > On Thu, 03 Nov 2011 17:45:13 -0400 Ted Zlatanov wrote: > I comitted a fix that removes the whole `bbdb-search*' issue. It also > avoids the BBDB autoloads. Please test and let me know. > Simplest test to verify it pick knownemail@knownhost.com out of BBDB, > then: > (spam-exists-in-BBDB-p "knownemail@knownhost.com") > The fundamental issue is with the `bbdb-search' defmacro and > compile-time detection of BBDB. I'm not good enough with that part of > Emacs to tell what's up, but I think I've taken the right (and faster) > approach. It works, but only if I compile spam.el with bbdb loaded. spam.elc created by the Makefile doesn't pick it up. I get this backtrace when trying the test: Debugger entered--Lisp error: (invalid-function bbdb-gethash) bbdb-gethash("david.goldberg6@verizon.net") spam-exists-in-BBDB-p("david.goldberg6@verizon.net") eval((spam-exists-in-BBDB-p "david.goldberg6@verizon.net")) eval-expression((spam-exists-in-BBDB-p "david.goldberg6@verizon.net") nil) call-interactively(eval-expression nil nil) When compiled in my running emacs with bbdb loaded, the test returns the bbdb entry for that address. I have to wonder if this is because I do not have bbdb installed in a particular location that gets picked up by emacs -batch, which i understand does not load .emacs. When I used to use xemacs (still do at work, but don't use spam.el there because all filtering is on the server) I installed bbdb in a local "package" directory tree in my home directory. Is there an equivalent to that with GNU Emacs I should be using? Thanks, -- Dave Goldberg david.goldberg6@verizon.net