Hi, so, based on previous mails I ended up with this for Gnus integration: ,---- | (require 'bbdb) | (bbdb-initialize 'gnus 'message) | (bbdb-mua-auto-update-init 'gnus 'message) | (setq bbdb-mua-update-interactive-p '(query . create) | bbdb-update-records-p 'query | bbdb-mua-auto-update-p 'query) | (setq bbdb-file "~/.bbdb" | bbdb-mua-pop-up-window-size 3 | bbdb-layout 'one-line | bbdb-pop-up-window-size 5 | bbdb-complete-mail-allow-cycling t) | (add-hook 'bbdb-notice-mail-hook 'bbdb-auto-notes) | | ; From a message on 19 Jun 2017 by Wes Hardaker in bbdb-info | ; to solve an issue with ivy + bbdb | ;(otherwise we can try with just C-M-j (bound to ivy-immediate-done) | | (defadvice bbdb-read-string (before bbdb-read-string-no-ivy activate) | (ivy-mode 0)) | (defadvice bbdb-read-string (after bbdb-read-string-yes-ivy activate) | (ivy-mode 1)) `----
Not perfect, but quite close to what I wanted. Now when I'm reading mails from inside Gnus, the BBDB buffer shows the record for the sender and it is updated automatically when I move from one message to another, and it asks me whether I want to add a new record when it finds one that is not in the database (if I don't want to add that person, it can be a bit annoying, because it will ask me everytime I see a mail from that person, not remembering I said 'no' already to that mail). To make it perfect I would prefer to: * if the sender is not in the database, get an empty BBDB buffer * to be able to create (not automatically, but issuing a command, so I can decide when/if to add it to the database) a new record with the info from the sender (similar to the old BBDB ":" behaviour). (Roland says that the right way to activate BBDB is by loading bbdb-loaddefs.el, but I don't find that file anywhere in my BBDB directory, and (require 'bbdb) seems to do the right thing?) Cheers, Ángel de Vicente Greg Bognar <greg.bog...@gmail.com> writes: > On Mon 19 Jun 2017 at 18:18 Roland Winkler wrote: >> On Mon Jun 19 2017 Greg Bognar wrote: >> > I am in the same situation with Wanderlust, so it seems a general >> > BBDB3 problem. With BBDB2 I was able to do something similar to >> > what you describe in WL. Now BBDB never asks to harvest any >> > address (unless I press :), no matter what settings I try. I >> > asked about it on this list a few months ago, but didn't get >> > anything useful. >> >> Have you looked into the README file? >> >> I know, it is not perfect. But it should get you started. > > The relevant parts of my init.el: > > (require 'bbdb) > (bbdb-initialize 'wl) > (bbdb-mua-auto-update-init 'wl) > (load "~/.emacs.d/filters") ;; Filters for BBDB > (setq bbdb-mua-update-interactive-p '(query . create) > bbdb-update-records-p 'query > bbdb-mua-auto-update-p 'query) > (setq bbdb-file "~/.emacs.d/bbdb" > bbdb-mua-pop-up-window-size 3 > bbdb-layout 'one-line > bbdb-pop-up-window-size 5 > bbdb-complete-mail-allow-cycling t) > (add-hook 'bbdb-notice-mail-hook 'bbdb-auto-notes) > > This is how far I got. The ~/.emacs.d/filters file contains the variables > bbdb-accept-message-alist and bbdb-ignore-message-alist. -- Ángel de Vicente http://angel-de-vicente.blogspot.com/ ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ bbdb-info@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bbdb-info BBDB Home Page: http://bbdb.sourceforge.net/