Hi Roland, many thanks for your help. After reading your comment, I just modified bbdb-mua-auto-update-p to 'search and then I have the perfect (for me) setting:
* when reading messages in Gnus if the sender is in the database it automatically shows its record in the BBDB buffer and when I move to another message, the BBDB buffer is changed automatically to show the new sender. * if I move to read a message whose sender is not in the database, the BBDB buffer is just empty (assuming it had been previously created with another message, otherwise no BBDB buffer is shown), but BBDB doesn't automatically add it to the database or ask me if I want to include it. For that I have to type ":" and then BBDB offers me the option to include it. That way I can grom my BBDB database in a more controlled fashion. So, if it can be of any help to someone in the future, here it is my final BBDB configuration lines in .emacs ,---- | ;; BBDB | ;;******************************************** | (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 'search) | (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)) `---- Cheers, -- Ángel de Vicente http://www.iac.es/galeria/angelv/ --------------------------------------------------------------------------------------------- ADVERTENCIA: Sobre la privacidad y cumplimiento de la Ley de Protección de Datos, acceda a http://www.iac.es/disclaimer.php WARNING: For more information on privacy and fulfilment of the Law concerning the Protection of Data, consult http://www.iac.es/disclaimer.php?lang=en ------------------------------------------------------------------------------ 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/