Re: [BBDB] ChangeLog 2011-12-11
I'll spare you all the boring details, but essentially I'm having to recreate my ~/.emacs from scratch. I checked out the most recent code from the Savannah repository today and followed the instructions in INSTALL and README as best I understood them. This gave me: (require 'bbdb-loaddefs ~/.emacs.d/bbdb/lisp/bbdb-loaddefs.el) (bbdb-initialize) (bbdb-mua-auto-update-init) This did not do what I wanted: automatically add or amend records in ~/.bbdb from Gnus articles. So I went back to README and found Binding [bbdb-mua-auto-update-p] to a function is often most helpful for noninteractive use. For example, you may want to bind bbdb-mua-auto-update-p to the function bbdb-select-message, see bbdb-accept-message-alist and bbdb-ignore-message-alist. If a message is accepted by bbdb-select-message, the actual action performed by BBDB (i.e., the return value of bbdb-select-message) is given by bbdb-mua-update-records-p. And in fact, C-h v says that bbdb-mua-auto-update-p is bound to bbdb-select message. As far as I can tell, setting (setq bbdb-mua-auto-update-p t) has no effect, and neither does doing the same to bbdb-mua-update-records-p. Clearly, I am misunderstanding something or Doing It Wrong. Can somebody point me in the right direction? -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
v3: name matched against organization?!
When visiting an article from foo b...@baz.com who is not in my db, I am offered to add name foo and address b...@baz.com to the record of First Last - foo, i.e., a person whose _organization_ is foo. I think this is wrong: matching the name foo against organization foo. -- Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000 http://pmw.org.il http://www.PetitionOnline.com/tap12009/ http://truepeace.org http://iris.org.il http://memri.org http://mideasttruth.com Oh Lord, give me the source code of the Universe and a good debugger! -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
patch: fix (defcustom bbdb-auto-notes-rules ...)
2011-12-27 Sam Steingold s...@gnu.org * lisp/bbdb.el (bbdb-auto-notes-rules): Use :set keyword to reset `bbdb-auto-notes-rules-expanded' when `bbdb-auto-notes-rules' is set. diff --git a/lisp/bbdb.el b/lisp/bbdb.el index 44c4181..a25cd34 100644 --- a/lisp/bbdb.el +++ b/lisp/bbdb.el @@ -1082,10 +1082,13 @@ See also variables `bbdb-auto-notes-ignore-messages' and For speed-up, the function `bbdb-auto-notes' actually use expanded rules stored in the internal variable `bbdb-auto-notes-rules-expanded'. -If you change the value of `bbdb-auto-notes-rules' +If you change the value of `bbdb-auto-notes-rules' outside of customize, set `bbdb-auto-notes-rules-expanded' to nil, so that the expanded rules will be re-evaluated. :group 'bbdb-mua + :set (lambda (symbol value) + (set-default symbol value) + (setq bbdb-auto-notes-rules-expanded nil)) :type '(repeat (bbdb-alist-with-header (repeat (choice -- Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000 http://iris.org.il http://www.PetitionOnline.com/tap12009/ http://truepeace.org http://mideasttruth.com http://camera.org If a cat tells you that you lost your mind, then it is so. -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: v3: name matched against organization?!
On 2011-12-28 02:27 +0800, Sam Steingold wrote: When visiting an article from foo b...@baz.com who is not in my db, I am offered to add name foo and address b...@baz.com to the record of First Last - foo, i.e., a person whose _organization_ is foo. I think this is wrong: matching the name foo against organization foo. How did that happen? BBDB does not seem to modify the organization field by default. It sets notes fields only. Leo -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: Fix wrong expansion of rules in bbdb-auto-notes
* Leo fqy@tznvy.pbz [2011-12-28 08:15:28 +0800]: On 2011-05-09 02:59 +0800, Roland Winkler wrote: 2011-12-27 Sam Steingold s...@gnu.org * lisp/bbdb.el (bbdb-auto-notes-rules): Use :set keyword to reset `bbdb-auto-notes-rules-expanded' when `bbdb-auto-notes-rules' is set. This has been discussed before http://thread.gmane.org/gmane.emacs.bbdb.user/2697/focus=2711 I think it is good idea to let go bbdb-auto-notes-rules-expanded. Whatever course is taken is fine by me. I sent a simple patch which fixes a bug. I think it should be applied until a your more elaborate fix is ready. -- Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000 http://www.PetitionOnline.com/tap12009/ http://ffii.org http://pmw.org.il http://thereligionofpeace.com http://iris.org.il http://www.memritv.org It's not just a language, it's an adventure. Common Lisp. -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: v3: name matched against organization?!
* Leo fqy@tznvy.pbz [2011-12-28 08:19:01 +0800]: On 2011-12-28 02:27 +0800, Sam Steingold wrote: When visiting an article from foo b...@baz.com who is not in my db, I am offered to add name foo and address b...@baz.com to the record of First Last - foo, i.e., a person whose _organization_ is foo. I think this is wrong: matching the name foo against organization foo. How did that happen? BBDB does not seem to modify the organization field by default. It sets notes fields only. (custom-set-variables '(bbdb-auto-notes-rules '((Web (.* www 0)) (X-Web (*\\(^*\\)* www 1)) (X-WWW-Homepage (*\\([^]*\\)* www 1)) (X-Url (*\\([^]*\\)* www 1)) (X-Url-From (*\\([^]*\\)* www 1)) (Organization (.* organization 0)) (Organisation (.* organization 0)) (X-Organisation (.* organization 0)) (X-Organization (.* organization 0) -- Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000 http://honestreporting.com http://jihadwatch.org http://palestinefacts.org http://memri.org http://www.PetitionOnline.com/tap12009/ http://camera.org If you try to fail, and succeed, which have you done? -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: v3: name matched against organization?!
On 2011-12-28 09:29 +0800, Sam Steingold wrote: (custom-set-variables '(bbdb-auto-notes-rules '((Web (.* www 0)) (X-Web (*\\(^*\\)* www 1)) (X-WWW-Homepage (*\\([^]*\\)* www 1)) (X-Url (*\\([^]*\\)* www 1)) (X-Url-From (*\\([^]*\\)* www 1)) (Organization (.* organization 0)) (Organisation (.* organization 0)) (X-Organisation (.* organization 0)) (X-Organization (.* organization 0) Just a note. This only modifies the notes subfield (as in bbdb-notes-label-list), not the standard organization field. Leo -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: v3: name matched against organization?!
* Leo fqy@tznvy.pbz [2011-12-28 10:56:36 +0800]: On 2011-12-28 09:29 +0800, Sam Steingold wrote: (custom-set-variables '(bbdb-auto-notes-rules '((Web (.* www 0)) (X-Web (*\\(^*\\)* www 1)) (X-WWW-Homepage (*\\([^]*\\)* www 1)) (X-Url (*\\([^]*\\)* www 1)) (X-Url-From (*\\([^]*\\)* www 1)) (Organization (.* organization 0)) (Organisation (.* organization 0)) (X-Organisation (.* organization 0)) (X-Organization (.* organization 0) Just a note. This only modifies the notes subfield (as in bbdb-notes-label-list), not the standard organization field. in v2 is did modify the company field. why the change? -- Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000 http://ffii.org http://truepeace.org http://memri.org http://iris.org.il http://camera.org http://www.memritv.org Diplomacy is the art of saying nice doggy until you can find a rock. -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/