Re: Problem creating record

2017-06-20 Thread Greg Bognar
On Mon 19 Jun 2017 at 18:18 Roland Winkler wrote:
> On Mon Jun 19 2017 Greg Bognar wrote:
> > I am in the same situation with Wanderlust, so it seems a general
> > BBDB3 problem.  With BBDB2 I was able to do something similar to
> > what you describe in WL.  Now BBDB never asks to harvest any
> > address (unless I press :), no matter what settings I try.  I
> > asked about it on this list a few months ago, but didn't get
> > anything useful.
> 
> Have you looked into the README file?
> 
> I know, it is not perfect.  But it should get you started.

The relevant parts of my init.el:

(require 'bbdb)
(bbdb-initialize 'wl)
(bbdb-mua-auto-update-init 'wl)
(load "~/.emacs.d/filters") ;; Filters for BBDB
(setq bbdb-mua-update-interactive-p '(query . create)
  bbdb-update-records-p 'query
  bbdb-mua-auto-update-p 'query)
(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)

This is how far I got.  The ~/.emacs.d/filters file contains the variables
bbdb-accept-message-alist and bbdb-ignore-message-alist.

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: Problem creating record

2017-06-19 Thread Greg Bognar
For the record:

On Mon 19 Jun 2017 at 11:52 Angel de Vicente wrote:
> [...] 
> What I don't seem to get is a nice integration with Gnus as I used to
> have with my previous BBDB version, 2.36. Ideally I would like:
> 
> 1. when reading a message, see if the sender is in my database (I can do
>that by pressing ":")
> 2. Once the BBDB buffer is shown, I would like that when I move to
>another message, the BBDB buffer is updated automatically: now I have
>to press ":" again to see the new sender, and if the sender is not in
>BBDB, it just shows the previous sender, where ideally an empty
>buffer would be better
> 3. Pressing ":" again gets rid of the BBDB buffer
> 4. If the sender is not in the database press some key and offer the
>option to include it in the database.
> 
> If anybody is using BBDB + Gnus and can give me some advice on how to
> get these things done I will appreciate it a lot.

I am in the same situation with Wanderlust, so it seems a general BBDB3 problem.
With BBDB2 I was able to do something similar to what you describe in WL.  Now
BBDB never asks to harvest any address (unless I press :), no matter what
settings I try.  I asked about it on this list a few months ago, but didn't get
anything useful.

Best,
Greg

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


Re: BBDB and Wanderlust

2017-03-11 Thread Greg Bognar
> > 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):
 (substitute-key-definition 
'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.
http://sdm.link/oxford
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/


BBDB and Wanderlust

2017-03-02 Thread Greg Bognar
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!

--
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
___
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/