> > On Thu Mar 2 2017 Greg Bognar wrote:
> > Hi, I'm trying to use BBDB with Wanderlust.  I installed the latest melpa
> > version (20170129.2224), but couldn't get it to work.  I noticed that the
> > README at https://github.com/dmj/bbdbv3 says BBDB must be built with
> > 
> > `--with-wl-dir=DIR' specifies the path where Wanderlust can be found.
> >      Without this option the resulting BBDB build does not support WL.
> > 
> > Could this be the problem?  I don't think the melpa version does this.
> > 
> > Does the melpa version work with WL?  And if it does, are there any specific
> > instructions I could follow?  Thanks!
> >
> On Thu  9 Mar 2017 at 04:38 Roland Winkler wrote:
> When you install BBDB from the tar ball, you need the above configure option.
> But if you got BBDB from melpa, there is no tar ball and the configure option
> should not be needed either.  So I expect that your problem is something else
> and I am wondering:
> Have you followed the instructions in the README file how to configure BBDB in
> your .emacs?
> Then, what are you expecting to get and what are you getting instead?

Yes, I've followed the instructions, but I'm not sure I understand them all.
The lack of documentation is a big hurdle.

I've managed to get most of it work.  I have autocompletion of addresses when I
compose mail.  I can display or annotate addresses with : and ;.  I can even get
BBDB to query the creation of addresses that are not already in the addressbook.

What I don't seem to be able to get to work is to automatically update records.
Here's the relevant part of the README:

"bbdb-mua-auto-update automatically updates the BBDB records for the
sender and/or recipients of a message.  If bbdb-mua-pop-up is non-nil,
the matching records are also displayed in a continuously updated BBDB window,"

bbdb-mua-pop-up is t, but I don't get a continuously updating BBDB window.

bbdb-mua-auto-update-p is bbdb-select-message.  What I expect to happen is that
when I get an email that is to an address in bbdb-accept-message-alist (i.e.,
addressed to me) and not in bbdb-ignore-message-alist, then BBDB searches
through my database, and if the sender has no record, then it either (1)
automatically creates a record for the sender, or (2) queries me for creating
one.  Either would be fine, but neither seems to happen.

I've played around with other values for bbdb-mua-auto-update-p, but they don't
seem to make any difference.

Here's my setup:

(require 'bbdb)
(bbdb-initialize 'wl)
(bbdb-mua-auto-update-init 'wl)
(load "~/.emacs.d/filters") ;; Filters for BBDB: setq for
                            ;; bbdb-accept-message-alist and
                            ;; bbdb-ignore-message-alist
(setq bbdb-mua-update-interactive-p '(query . create))
(setq bbdb-file "~/.emacs.d/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) ;; not sure I need this
(add-hook 'wl-mail-setup-hook
                         '(lambda () ;; From BBDB (TAB):
'wl-complete-field-body-or-tab 'bbdb-complete-mail wl-draft-mode-map)))

I think I need to set bbdb-mua-auto-update-p, but I'm not sure how.

PS. I would also like to be able to edit *all* the fields of a record when I
press ; (bbdb-mua-edit-field-sender).  Is there a command for that?

Announcing the Oxford Dictionaries API! The API offers world-renowned
dictionary content that is easy and intuitive to access. Sign up for an
account today to start using our lexical data to power your apps and
projects. Get started today and enter our developer competition.
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to