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/

Re: bbdb3 won't stop auto-updating records

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

 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.

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/

bbdb-message-all-addresses (was: bbdb3 won't stop auto-updating records)

2015-04-28 Thread Nikolaus Rath
On Apr 27 2015, Glyn Millington glyn.milling...@gmail.com wrote:
 (setq bbdb-message-all-addresses t)

Can you explain what this setting does?

The help says

,
| If t `bbdb-update-records' returns all mail addresses of a message.
| Otherwise this function returns only the first mail address of each message.
`

..but this still doesn't tell me what this means for me, and if I want
that behavior (no, the bbdb-update-records description did not help
either).


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

2015-04-28 Thread Nikolaus Rath
On Apr 27 2015, Glyn Millington glyn.milling...@gmail.com wrote:
 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
   bbdb-update-records-p 'query
   bbdb-ignore-message-alist
  '((From . bugzilla-daemon)))


 As I understand, setting bbdb-mua-auto-update-p should prevent bbdb from
 attempting to automatically update records. However, every time I select
 any article in Gnus, bbdb asks me if I want to create or update the
 records of the sender and recipients.

 ... and conversely, even if I set bbdb-mua-auto-update-p to 'query, it
 does not ask me to update recipient records when composing and sending a
 message using message-mode.

 I feel like I'm missing something obvious...

 This is part of my set-up. 

 (setq bbdb-file ~/.emacs.d/.bbdb)
 (bbdb-initialize 'gnus 'message 'anniv)
 (setq bbdb-complete-mail-allow-cycling t)
 ;; control pop-up and it's size
 (setq bbdb-mua-pop-up t)
 (setq bbdb-mua-pop-up-window-size 0.1)
 (setq bbdb-mua-update-interactive-p '(query . create))
 (setq bbdb-message-all-addresses t)
 (add-hook 'message-setup-hook 'bbdb-mail-aliases)

 This works as you want it to work I think.

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?


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

2015-04-27 Thread Nikolaus Rath
On Apr 22 2015, Nikolaus Rath nikol...@rath.org wrote:
 On Apr 22 2015, Nikolaus Rath nikol...@rath.org wrote:
 Hello,

 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
   bbdb-update-records-p 'query
   bbdb-ignore-message-alist
  '((From . bugzilla-daemon)))


 As I understand, setting bbdb-mua-auto-update-p should prevent bbdb from
 attempting to automatically update records. However, every time I select
 any article in Gnus, bbdb asks me if I want to create or update the
 records of the sender and recipients.

 ... and conversely, even if I set bbdb-mua-auto-update-p to 'query, it
 does not ask me to update recipient records when composing and sending a
 message using message-mode.

 I feel like I'm missing something obvious...

*ping*

Really no one able to help?


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

2015-04-22 Thread Nikolaus Rath
On Apr 22 2015, Nikolaus Rath nikol...@rath.org wrote:
 Hello,

 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
   bbdb-update-records-p 'query
   bbdb-ignore-message-alist
  '((From . bugzilla-daemon)))


 As I understand, setting bbdb-mua-auto-update-p should prevent bbdb from
 attempting to automatically update records. However, every time I select
 any article in Gnus, bbdb asks me if I want to create or update the
 records of the sender and recipients.

... and conversely, even if I set bbdb-mua-auto-update-p to 'query, it
does not ask me to update recipient records when composing and sending a
message using message-mode.

I feel like I'm missing something obvious...


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

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

bbdb3 won't stop auto-updating records

2015-04-22 Thread Nikolaus Rath
Hello,

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
  bbdb-update-records-p 'query
  bbdb-ignore-message-alist
 '((From . bugzilla-daemon)))


As I understand, setting bbdb-mua-auto-update-p should prevent bbdb from
attempting to automatically update records. However, every time I select
any article in Gnus, bbdb asks me if I want to create or update the
records of the sender and recipients.

What am I missing?

Thanks!
-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.«

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/