Re: Record address from all field

2015-04-29 Thread Piet van Oostrum
f...@epita.fr wrote:

  I did not manage to find the version of bbdb I am using.
  I look in C-h i m and in the file but I don't find it.

C-h v bbdb-version
-- 
Piet van Oostrum p...@vanoostrum.org
WWW: http://pietvanoostrum.com/
PGP key: [8DAE142BE17999C4]

--
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: Record address from all field

2015-04-29 Thread flav
Peter Münster pmli...@free.fr writes:

 On Tue, Apr 28 2015, f...@epita.fr wrote:

 (defun pm/alter-summary-map ()
   ; .
   (local-set-key : 'bbdb-mua-display-records))
 (add-hook 'gnus-summary-mode-hook   'pm/alter-summary-map)

 I try, but :

 Symbol's function definition is void: bbdb-mua-display-records

 You'll need probably the latest BBDB version and these lines:

I did not manage to find the version of bbdb I am using.
I look in C-h i m and in the file but I don't find it.

 (require 'bbdb-loaddefs)
 (bbdb-initialize 'gnus 'message)

I do :

(setq bbdb-file ~/.emacs.d/bbdb)
(require 'bbdb)
(bbdb-initialize 'gnus 'message)



-- 
flav


--
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: bbdb3 won't stop auto-updating records

2015-04-29 Thread Glyn Millington
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? 

Way out of my depth here!



 That being said, I'm not clear what it is you are trying to achieve.  It
 might help to post your custom  bbdb-mua-auto-update-p and explain what
 you are hoping will result.

 Well, I really just want bbdb to stop ignoring the
 bbdb-mua-auto-update-p variable. I think that before that works, there
 is little point in setting it to a custom function and posting that
 function. 

 That said, my eventual goal is to have bbdb automatically update
 addresses in only some Gnus groups.

Might be worth flagging that up in a new thread? 


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: bbdb3 won't stop auto-updating records

2015-04-29 Thread Phil Hudson
On Tue, 28 Apr 2015 at  2:35:06 pm BST, Piet van Oostrum p...@vanoostrum.org 
wrote:

 In BBDB 3.1.2 there is no bbdb-define-all-aliases. It should be
 bbdb-mail-aliases, as mentioned in some earlier messages on this list. So the
 wiki should be updated.

Done.

-- 
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: bbdb3 won't stop auto-updating records

2015-04-29 Thread Nikolaus Rath
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/

Update records in some Gnus groups

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

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/

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/