Re: Update records in some Gnus groups

2015-04-30 Thread Glyn Millington
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!


atb

Glyn


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


Re: Update records in some Gnus groups

2015-04-30 Thread Phil Hudson
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. 

-- 
Phil Hudson   http://hudson-it.ddns.net
@UWascalWabbit PGP/GnuPG ID: 0x887DCA63

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


Re: Update records in some Gnus groups

2015-04-30 Thread Eric Abrahamsen
Eric Abrahamsen e...@ericabrahamsen.net writes:

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

Best yet, let's simplify BBDB's whole noticing mechanism, and _then_
write a manual for it. *ducks*


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


Re: Update records in some Gnus groups

2015-04-30 Thread Eric Abrahamsen
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/


Re: Update records in some Gnus groups

2015-04-30 Thread Roland Winkler
On Thu Apr 30 2015 Eric Abrahamsen wrote:
 Best yet, let's simplify BBDB's whole noticing mechanism, and _then_
 write a manual for it. *ducks*

Suggestions welcome.  This code used to be yet much messier.
However it should cover a rather diverse spectrum of use cases.

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


Re: Update records in some Gnus groups

2015-04-29 Thread Nikolaus Rath
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 :-).

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/