Hi, I'm working on the spam.el code in the Gnus newsreader.
I am trying to cache the BBDB records, using the expanded bbdb-hashtable macro, when the spam-cache-lookups variable is t: ;; given a hashtable spam-caches where miscellaneous caches are stored (when spam-cache-lookups (setq bbdb-cache (gethash 'spam-use-BBDB spam-caches)) (unless bbdb-cache (setq bbdb-cache ;; this is the expanded (bbdb-hashtable) macro ;; without the debugging support (with-current-buffer (bbdb-buffer) (save-excursion (save-window-excursion (bbdb-records nil t) bbdb-hashtable)))) (puthash 'spam-use-BBDB bbdb-cache spam-caches))) ;; given an e-mail address in the who variable, is it in the BBDB? (if spam-cache-lookups (symbol-value (intern-soft who bbdb-cache)) (bbdb-search-simple nil who)) The problem with the code above is that when spam-cache-lookups is set, only the primary net address is found in the BBDB. I could not figure out the problem, partly because I'm just not very comfortable with Lisp macros. Any help would be greatly appreciated. The actual code is in spam.el, the spam-check-BBDB function. Thanks Ted ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/