On Fri Sep 7 2012 Roland Winkler wrote:
> > Everytime I read one of these messages, BBDB asks me if I'd like
> > to change the name of "some-real-person" to "The Bug Tracking System"
> > or add "some-real-person" to "some-other-real-person".
> 
> You are struggling with similar problems... I extended the allowed
> values for bbdb-accept-name-mismatch to include regexps and
> functions. This should hopefully solve most problems of that kind.
> See the updated doc string of bbdb-accept-name-mismatch.

Just after I pushed this patch, I wanted to do something similar
with mail addresses. There was the user variable bbdb-add-mails for
this. But the details of how things could be customized were rather
different. Also, there were the user variables
bbdb-use-alternate-names and bbdb-new-mails-always-primary, again
serving for related problems, but each of them using its own scheme.

With the patch below, I tried to clean up these things.
Unfortunately, this resulted in a few more backward
incompatibilities:

  bbdb-accept-name-mismatch      -> bbdb-add-name
  bbdb-use-alternate-names       -> bbdb-add-aka
  bbdb-new-mails-always-primary  -> bbdb-new-mails-primary

Yet the new scheme with the user variables bbdb-add-name,
bbdb-add-aka, bbdb-add-mails, and bbdb-new-mails-primary should be
both much more transparent and more powerful. See the docstring of
these variables.


2012-09-09  Roland Winkler  <wink...@gnu.org>
        Provide unified scheme for customizing how BBDB analyzes messages.

        * lisp/bbdb.el (bbdb-add-name): Renamed from
        bbdb-accept-name-mismatch.
        (bbdb-add-aka): Renamed from bbdb-use-alternate-names.
        (bbdb-new-mails-primary): Renamed from
        bbdb-new-mails-always-primary.
        (bbdb-add-name, bbdb-add-aka, bbdb-add-mails)
        (bbdb-new-mails-primary): Unify set of allowed values.
        (bbdb-add-job, bbdb-eval-spec): New functions.
        (bbdb-mode): Update docstring.

        * lisp/bbdb-com.el (bbdb-merge-records): Use bbdb-add-aka.

        * lisp/bbdb-mua.el (bbdb-annotate-message): Use bbdb-add-name,
        bbdb-add-aka, bbdb-add-mails, and bbdb-new-mails-primary.

BBDB is available at
http://savannah.nongnu.org/projects/bbdb/
To check it out, use
git clone git://git.savannah.nongnu.org/bbdb.git

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to