将当前条目插入BBDB

use*_*592 4 emacs gnus bbdb

我已经读过"将一个人的条目插入BBDB的最简单方法是在摘要缓冲区中按下:(冒号),当他的消息被选中时.如果该人已经在数据库中,则没有任何反应;否则,Emacs会询问您是否要将他插入数据库."

这对我不起作用,我猜是因为我正在使用BBDB 3.

编辑:':'运行命令'bbdb-mua-display-sender'.

这有解决方法吗?

小智 5

这是我在.emacs中使用的在Gnus中使用BBDB-3的方法,它会将此功能赋予; 键:

(require 'bbdb-autoloads)
(require 'bbdb)

;; initialization
(bbdb-initialize 'gnus 'message)
(bbdb-mua-auto-update-init 'gnus 'message)

;; size of the bbdb popup
(setq bbdb-pop-up-window-size 0.15)
(setq bbdb-mua-pop-up-window-size 0.15)

;; What do we do when invoking bbdb interactively
(setq bbdb-mua-update-interactive-p '(query . create))

;; Make sure we look at every address in a message and not only the
;; first one
(setq bbdb-message-all-addresses t)

;; use ; on a message to invoke bbdb interactively
(add-hook
 'gnus-summary-mode-hook
 (lambda ()
    (define-key gnus-summary-mode-map (kbd ";") 'bbdb-mua-edit-field)))
Run Code Online (Sandbox Code Playgroud)

我从网上的某个地方得到了这些信息,但不能找到刚才的地方; 也许这可以让你走上正确的道路?

  • 我现在试了一下.实际上,代码的重要部分是:(setq bbdb-mua-update-interactive-p'(query.create)).有了这个,我得到了我想要的东西.谢谢! (5认同)