On Friday, April 20 2001 03:22:36, Martin Schwenke wrote:
> The documentation string for bbdb/vm-update-records says:
>
> A record will be created if bbdb/mail-auto-create-p is non-nil, or
> if OFFER-TO-CREATE is true and the user confirms the creation.
>
> However, a value of t for bbdb/mail-auto-create-p appears to simply
> cause bbdb/vm-prompt-for-create to be called. However,
> bbdb/mail-auto-create-p is not looked at in bbdb/vm-prompt-for-create
> nor is it looked at again in bbdb/vm-update-records. No record seems
> to get created.
>
> In particular, the following useful hack has stopped working for me
> since I upgraded to BBDB 2.32:
>
> ;;From: Robert Fenk <[EMAIL PROTECTED]>
> ;;Sender: [EMAIL PROTECTED]
> ;;To: [EMAIL PROTECTED]
> ;;Subject: Re: Re:misusing the bbdb, frequent contacts
> ;;Date: Fri, 27 Oct 2000 11:38:22 +0000
> (defun bbdb/vm-force-create ()
> "Force automatic adding of a bbdb entry for current message."
> (interactive)
> (let ((bbdb/mail-auto-create-p t)
> (bbdb-message-caching-enabled nil))
> (save-excursion
> (vm-select-folder-buffer)
> (bbdb/vm-pop-up-bbdb-buffer))))
> (add-hook 'vm-reply-hook 'bbdb/vm-force-create)
The variable bbdb/prompt-for-create-p is your friend!
(defun bbdb/vm-force-create ()
"Force automatic adding of a bbdb entry for current message."
(interactive)
(let ((bbdb/mail-auto-create-p t)
(bbdb-prompt-for-create nil)
(bbdb-message-caching-enabled nil)
(bbdb/vm-update-records-mode 'annotating))
(save-excursion
(vm-select-folder-buffer)
(bbdb/vm-update-records))))
Bye Robert
On Mon, 23 Apr 2001 10:42:10 Robert Fenk wrote:
> On Friday, April 20 2001 12:24:29, Martin Schwenke wrote:
> [...]
> > However, a value of t for bbdb/mail-auto-create-p appears to simply
> > cause bbdb/vm-prompt-for-create to be called. However,
> > bbdb/mail-auto-create-p is not looked at
>
> Seems like I mixed up some things during the new update
> stuff, i.e. with *-auto-create-p set to 't you still will be
> asked for creation.
>
> I will verify this and apply a bug fix soon.
As I see it now there was no bug, so I made no fix.
_______________________________________________
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/