"Roland Winkler" <wink...@gnu.org> writes:

> On Fri Feb 14 2014 Kevin Brubeck Unhammer wrote:
>> I had bbdb2 configured so it would 'update records on incoming mail in
>> gnus and 'create new records when I sent mail with message. How do I do
>> this in bbdb3? I tried both
>> 
>>     (setq bbdb-update-records-p nil
>>           bbdb/gnus-update-records-p 'update
>>           bbdb/message-update-records-p 'create)
>> 
>> and
>>     (setq bbdb-update-records-p (lambda ()
>>                                    (let ((mua (bbdb-mua)))
>>                                      (message "mua: %s" mua)
>>                                      (cond ((eq mua 'gnus) 'update)
>>                                            ((eq mua 'message) 'create)
>>                                            (t 'search))))
>
> In what context do you want to use this (the BBDB auto update
> feature or with some interactive commands)?

I want the new email address I type in to be created in BBDB when I do
- C-x m, type in a new email address, C-c C-c
- or from Gnus, reply/send to some new email address, and do C-c C-c

I don't want new records to be created when I simply _read_ mail (then I
just want the effect of 'update).

I never want to have to manually call bbdb-create.

> Possibly you want to bind the above lambda expression to (the car or
> cdr of) bbdb-mua-update-interactive-p.

I tried adding it to both the car and cdr and sending a message, no
"mua" in *Messages* so it didn't get called :(

-- 
Kevin Brubeck Unhammer

GPG: 0x766AC60C

Attachment: pgpxtLOeCP4xq.pgp
Description: PGP signature

------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience.  Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to