On Fri, 17 Dec 2004, [EMAIL PROTECTED] wrote:

> So I tried edebug-defun on spam-check-BBDB (I have not much
> experience with this). So I send myself a couple of messages from
> [EMAIL PROTECTED]
> I use the simplify setting
> (setq nnimap-split-rule 'nnimap-split-fancy nnimap-split-inbox "INBOX"
>       nnimap-split-fancy '(| (: spam-split) "MAILBOX"))
> 
> (setq spam-use-BBDB-exclusive  t)
> (setq spam-use-BBDB t)
> 
> And indeed these messages end up in SPAM.
> 
> So when running the debugger, first everything goes smoothly, who
> is correctly identified with  "[EMAIL PROTECTED]"
> the problem start in the line (intern-soft who bbdb-cache) there for some
>       reason
> nil is returned!!!

I think I see the problem!

Can you set spam-cache-lookups to nil?  That tries to use a cache so
BBDB lookups are not repeated unnecessarily.  The code that populates
the cache is:

            (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))))

This does not care for case sensitivity, though, hence your problem -
the cache is case-sensitive even though (bbdb-search-simple) is
case-insensitive.  Disable spam-cache-lookups for now, and when I get
responses to my question below we'll get it truly fixed.

Can any BBDB wizards tell me how I can populate the bbdb-cache obarray
with interned lowercased versions of every net address?  That would be
very helpful.  I am not sure using bbdb-hashtable is the right approach.

Thanks
Ted



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to