如何在Emacs中配置Gnus以向BBDB添加电子邮件地址?

时间:2013-12-05 21:57:55

标签: emacs gnus bbdb

我正试图在漫游中将Wanderlust更改为Gnus。开箱即用,它会自动将电子邮件的电子邮件地址添加到BBDB。我发现这会给BBDB带来太多的垃圾,电子邮件让我永远不想写电子邮件。

我宁愿有一把钥匙,比如':'在电子邮件地址上显示匹配的当前BBDB记录或创建一个新记录供我编辑。

我认为这很容易找到答案,但我还没有找到解决方案。

有什么想法吗?

2 个答案:

答案 0 :(得分:0)

要将bbdb/mail-auto-create-p的值从t更改为nil,您可以使用:

(setq bbdb/mail-auto-create-p nil)

bbdb/mail-auto-create-p is a variable defined in `bbdb.el'.
Its value is t

Documentation:
*If this is t, then Gnus, MH, RMAIL, and VM will automatically
create new bbdb records for people you receive mail from. If this
is a function name or lambda, then it is called with no arguments
to decide whether an entry should be automatically created. You
can use this to, for example, not create records for messages
which have reached you through a particular mailing list, or to
only create records automatically if the mail has a particular
subject.

You can customize this variable.

答案 1 :(得分:0)

BBDB v3 +具有bbdb-mua-auto-update-p(可自定义变量):

  

bbdb-mua-auto-update如何自动更新BBDB记录。

     

允许的值为(这里的ADDRESS是消息中找到的电子邮件地址):

     

nil不执行任何操作。

     

search搜索与ADDRESS匹配的现有记录。

     

update搜索与ADDRESS匹配的现有记录;                   如有必要,请更新名称和邮件字段。

     

query搜索与ADDRESS匹配的现有记录;                   如果该记录不存在,则查询创建新记录。

     

createt搜索与ADDRESS匹配的现有记录;                   如果尚不存在,则创建一个新记录。

     

a function将不带任何参数调用此函数。                   它应该返回上述值之一。                   有关示例,请参见“ bbdb-select-message”                   “ bbdb-mua-update-records-p”,“ bbdb-accept-message-alist”                   和“ bbdb-ignore-message-alist”。

     

要启动BBDB记录的自动更新,请调用“ bbdb-mua-auto-update-init”   初始化文件中的各个MUA。