On Apr 28 2015, Glyn Millington <glyn.milling...@gmail.com> wrote:
> Nikolaus Rath <nikol...@rath.org> writes:
>> On Apr 28 2015, Glyn Millington <glyn.milling...@gmail.com> wrote:
>>> Nikolaus Rath <nikol...@rath.org> writes:
>>>
>>>>
>>>> Well, yes, if you don't pass 'gnus to the bbdb-mua-auto-update-init
>>>> function, then it won't parse any Gnus article buffers.
>>>>
>>>> However, I *want* bbdb3 to parse the Gnus article buffers under same
>>>> conditions. I tried implemeting this conditions in a custom
>>>> bbdb-mua-auto-update-p functions, but it did not work. When debugging
>>>> this, I found out that even the trivial case of setting
>>>> bbdb-mua-auto-update-p to nil does not prevent bbdb from parsing the
>>>> gnus buffers - thus my question here.
>>>>
>>>> To me this looks like a bug. Am I missing something?
>>>
>>> Not sure!  I've pasted that chunk of your config down below to comment
>>> in it. 
>>>
>>>>>>>> I'm using bbdb 3.1.2. I have the following configuration:
>>>>>>>>
>>>>>>>> (require 'bbdb)
>>>>>>>> (bbdb-initialize 'gnus 'message)
>>>>>>>> (bbdb-mua-auto-update-init 'gnus 'message)
>>>>>>>> (setq bbdb-mua-pop-up t
>>>>>>>>       bbdb-mua-auto-update-p nil
>>>
>>> So it won't automatically update but
>>>
>>>
>>>>>>>>       bbdb-update-records-p 'query
>>>
>>> It will ASK if you want to update
>>
>> No. According to the documentation, this is the return value for
>> `bbdb-select-message`. But bbdb select message should never be called if
>> bbdb-mua-auto-update-p is nil.
>
> Now you have me intrigued!  Rummaging around in the source code for what
> might invoke bbdb-select-message  I found this:
>  
> (defcustom bbdb/gnus-update-records-p
>   (lambda () (let ((bbdb-update-records-p 'query))
>                (bbdb-select-message)))
>   "How `bbdb-mua-update-records' processes mail addresses in Gnus.
> This Gnus-specific variable is normally not used.  It is a fallback
> if the generic (MUA-independent) variables `bbdb-mua-auto-update-p',
> `bbdb-update-records-p' or `bbdb-mua-update-interactive-p' result
> in a value of nil for the arg UPDATE-P of `bbdb-update-records'.
>
> Does that explain why bbdb-select-message is being called despite
> bbdb-mua-auto-update-p being nil?

Yes, I think that's it. Thanks a lot!

I'm a little flabbergasted by this though. Why is there a need for a
fallback in the first place? I think nil should be interpreted like the
documentation say: do nothing.


Best,
-Nikolaus

-- 
GPG encrypted emails preferred. Key id: 0xD113FCAC3C4E599F
Fingerprint: ED31 791B 2C5C 1613 AF38 8B8A D113 FCAC 3C4E 599F

             »Time flies like an arrow, fruit flies like a Banana.«

------------------------------------------------------------------------------
One dashboard for servers and applications across Physical-Virtual-Cloud 
Widest out-of-the-box monitoring support with 50+ applications
Performance metrics, stats and reports that give you Actionable Insights
Deep dive visibility with transaction tracing using APM Insight.
http://ad.doubleclick.net/ddm/clk/290420510;117567292;y
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to