On Sun Oct 14 2012 Leo wrote:
> Yes, it is related. The way BBDB3 handles duplicates is pretty bad. Try
> to create two records with the same name. It throws an error in emacs
> -q. 

See bbdb-allow-duplicates.

I guess it is fair to say that this variable was introduced long ago
not as a bug, but as a feature. Depending on circumstances, it could
be more likely that duplicate entries inadvertently refer to the
same person.

Also, the docstring of this variable expresses the fact...

> On 2012-10-13 19:57 +0800, Roland Winkler wrote:
> > Can you please be more specific? Under what circumstances did BBDB
> > what, which now it does not do anymore?
> 
> Create a bbdb db with two duplicate records and each has an email.
> 
> Try completing emails in gnus or whatever mailer.
> 
> Type a substring that matches both emails and complete. Only one email
> address is completed. The other is ignored.

...that so far in BBDB's history nobody considered the case of
records with duplicate names important enough to extend the code of
bbdb-complete-mail to handle such records properly. If this is
urgent for you, you might want to look into this function yourself.

Actually, I am not sure this requires a UID field. Instead, it may
be sufficient that bbdb-complete-mail does not immediately exit one
of its loops if it found one record matching a name. Instead it
needs to continue looking for matching records.

Note that BBDB's hash table associates elements in, say, the
organization field with multiple records. In the same way it *can*
associate a name with multiple records. Merely, details are not yet
spelled out in the code. See the warning in bbdb-allow-duplicates.

Roland

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
bbdb-info@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bbdb-info
BBDB Home Page: http://bbdb.sourceforge.net/

Reply via email to