Phil Hudson <phil.hud...@iname.com> writes:

> On Thu, 30 Apr 2015 at  7:27:02 am BST, Glyn Millington 
> <glyn.milling...@gmail.com> wrote:
>
>> Nikolaus Rath <nikol...@rath.org> writes:
>>
>>> On Apr 29 2015, Nikolaus Rath <nikol...@rath.org> wrote:
>>>
>>>> Hello,
>>>>
>>>> Is there a way to have bbdb3 automatically update the records in some
>>>> (but not all) Gnus (imap) groups?
>>>>
>>>> I tried writing a custom function for bbdb-mua-auto-update-p whose
>>>> return value depends on the active group  but I've had no luck (it seems
>>>> this variable is just completely ignored).
>>>
>>> Glyn figured out the problem (see other thread). With
>>> bbdb/gnus-update-records-p set to nil, I can set bbdb-mua-auto-update-p
>>> to something like
>>>
>>> defun my-bbdb-select-message ()
>>>   "Add people to bbdb when in certain groups."
>>>   (cond ((string-match "^nnimap:INBOX" gnus-newsgroup-name)
>>>          (bbdb-select-message))
>>>         ((eq major-mode 'message-mode)
>>>          (bbdb-select-message))
>>>         (t
>>>          'update)))
>>>
>>> ...and it actually takes effect.
>>>
>>>
>>> Problem solved :-).
>>
>>
>> Result!  And thank you for the function - I propose to steal that one!
>
> Let's all try to remember to record all our BBDB folklore on Emacswiki
> for posterity. 

Better yet, let's write a manual for BBDB version 3...


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