Re: v3: name matched against organization?!
On Wed Dec 28 2011 Leo wrote: 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. Not quite! Leo, I modified the code following your request: In Sam's setting of bbdb-auto-notes-rules, the line (Organization (.* organization 0)) means that if the message has an Organization header, the value of that header is added to the organization field of the corresponding BBDB record (which, I assume is what Sam wants to do...) On 2011-12-27 09:29 +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. ...Yet this does not yet explain Sam's problem: if the message of foo b...@baz.com had a header Organization: Woozle, his setting of bbdb-auto-notes-rules should add Woozle to Foo's BBDB record. Yet it should not operate on an existing record where the organization field had value 'Foo' (unless the value of the name field was 'Foo', too). Right now I am puzzled... In general, multiple records may share the same organization field. Which record is picked then? Roland -- 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?!
* Roland Winkler jvax...@tah.bet [2011-12-28 03:51:14 -0600]: On 2011-12-27 09:29 +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. ...Yet this does not yet explain Sam's problem: if the message of foo b...@baz.com had a header Organization: Woozle, his setting of bbdb-auto-notes-rules should add Woozle to Foo's BBDB record. Yet it should not operate on an existing record where the organization field had value 'Foo' (unless the value of the name field was 'Foo', too). this is not what is happening to me. I see a message in a newsgroup From: foo b...@baz.com I do not have a record with name=foo or mail containing b...@baz.com. However I have a single bbdb record with organization=foo. The message is marked as coming from a known bbdb person and that person is the one with organization=foo. Right now I am puzzled... In general, multiple records may share the same organization field. Which record is picked then? I happen to have just one record with this specific organization. -- Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000 http://camera.org http://mideasttruth.com http://thereligionofpeace.com http://dhimmi.com http://www.PetitionOnline.com/tap12009/ http://truepeace.org Old Age Comes at a Bad Time. -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
window splitting: patch
diff --git a/ChangeLog b/ChangeLog index 616832d..6bbbe47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2011-12-28 Sam Steingold s...@gnu.org + * lisp/bbdb.el (bbdb-pop-up-window): + Shrink the vertical *BBDB* window when possible. + 2011-12-27 Sam Steingold s...@gnu.org * lisp/bbdb-mua.el (bbdb-update-records): Use `symbol-value' instead of `eval' for symbols. diff --git a/lisp/bbdb.el b/lisp/bbdb.el index 4199d61..87f6c9f 100644 --- a/lisp/bbdb.el +++ b/lisp/bbdb.el @@ -3047,7 +3047,8 @@ will be split vertically rather than horizontally. (window-height tallest-window) (select-window (next-window)) ; goto the bottom of the two... (let (pop-up-windows) ; make it display *BBDB*... - (switch-to-buffer (get-buffer-create bbdb-buffer-name + (switch-to-buffer (get-buffer-create bbdb-buffer-name)) + (shrink-window-if-larger-than-buffer))) (error (pop-to-buffer (get-buffer-create bbdb-buffer-name (unless select (select-window selected-window) ; original window we were in -- Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000 http://www.memritv.org http://dhimmi.com http://memri.org http://openvotingconsortium.org http://iris.org.il http://camera.org If a train station is a place where a train stops, what's a workstation? -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
v3 window splitting: problem
Hi, I have the following problem: I want the *BBDB* window to be split horizontally, so I set bbdb-message-pop-up to 'horiz. Alas, sometimes is works, sometimes it does not. Specifically, I have two displays: wide (X: 1366x768, Emacs frame: 221x54) tall (X: 1200x1920, Emacs frame: 193x143) When I use the tall display, the *BBDB* window is vertical (i.e., it is split sideways, which is precisely what I want) When I use the wide display, the *BBDB* window is horizontal (i.e., it is split on the bottom top of another windows, which is _NOT_ what I want). I can't seem to be able to debug this; the horiz-p argument to bbdb-pop-up-window is very confusing. Can someone enlighten me? PS. Also, I think having more control over the horiz splitting would be nice. right now the current (*Summary* in gnus) window is split; I think two other options: split the tallest window and split _all_ windows would be nice too. WDYT? -- Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000 http://jihadwatch.org http://pmw.org.il http://www.memritv.org http://memri.org http://mideasttruth.com http://dhimmi.com http://camera.org Unix roulette: `dd if=/dev/urandom of=/dev/kmem bs=1 count=1 seek=$RANDOM` -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: upgrading to v 3
* Roland Winkler jvax...@tah.bet [2011-12-28 04:32:44 -0600]: On Mon Dec 26 2011 Sam Steingold wrote: 1. despite (bbdb-mua-auto-update-init 'gnus 'message) when I view an article, the *BBDB* buffer does not appear for the known senders (marked with a bbdb/gnus-summary-known-poster-mark in summary). When I do (add-hook 'gnus-article-prepare-hook 'bbdb-mua-display-sender) gnus-article-prepare-hook is a variable defined in `gnus-art.el'. Its value is (bbdb-mua-display-sender bbdb-mua-auto-update) is this the correct value? apparently, one has to set _both_ bbdb-mua-auto-update-p _and_ bbdb/gnus-update-records-p to 'search. ...Strange. If you set bbdb-mua-auto-update-p, this is what bbdb-mua-auto-update uses. In this case, it should never see your value of bbdb/gnus-update-records-p. hmm, I restarted emacs with your suggested settings. bbdb/gnus-update-records-p (lambda nil (let ((bbdb-update-records-p (quote query))) (bbdb-select-message))) bbdb-mua-auto-update-p search when I view a gnus article (message) from an unknown sender, I am offered creation of a record. on the plus side, I can now create records from messages (: and ; work again!) I guess this means that 1. bbdb/gnus-update-records-p should not be a defcustom. 2. it is used somewhere where bbdb-mua-auto-update-p should be used instead. would you please fix this, or do I have to do it? thanks! -- Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000 http://dhimmi.com http://palestinefacts.org http://thereligionofpeace.com http://ffii.org http://honestreporting.com http://camera.org http://iris.org.il If you have to be told to question authority, perhaps you shouldn't. -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
bbdb-check-auto-save-file is broken
If I set bbdb-check-auto-save-file to t, modify the db and not save it right away, I am asked all the time about recovering bbdb from the auto save file. with v2, I was asked this only when bbdb was first loaded, which was useful. -- Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000 http://honestreporting.com http://memri.org http://iris.org.il http://jihadwatch.org http://palestinefacts.org http://thereligionofpeace.com C combines the power of assembler with the portability of assembler. -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/
Re: upgrading to v 3
* Sam Steingold f...@tah.bet [2011-12-28 13:47:57 -0500]: hmm, I restarted emacs with your suggested settings. bbdb/gnus-update-records-p (lambda nil (let ((bbdb-update-records-p (quote query))) (bbdb-select-message))) bbdb-mua-auto-update-p search when I view a gnus article (message) from an unknown sender, I am offered creation of a record. on the plus side, I can now create records from messages (: and ; work again!) here is the fix: diff --git a/lisp/bbdb-mua.el b/lisp/bbdb-mua.el index e0059a1..2d515ab 100644 --- a/lisp/bbdb-mua.el +++ b/lisp/bbdb-mua.el @@ -657,7 +657,8 @@ For interactive calls, see function `bbdb-mua-update-interactive-p'. (interactive (list nil (bbdb-mua-update-interactive-p))) (let (records) (bbdb-mua-wrapper - (setq records (bbdb-mua-update-records header-class update-p))) + (setq records (bbdb-mua-update-records +header-class (or update-p bbdb-mua-auto-update-p (if records (bbdb-display-records-internal records)) records)) -- Sam Steingold (http://sds.podval.org/) on Ubuntu 11.10 (oneiric) X 11.0.11004000 http://pmw.org.il http://thereligionofpeace.com http://dhimmi.com http://camera.org http://openvotingconsortium.org http://mideasttruth.com What was the best thing before sliced bread? -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox ___ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/