On Sat Oct 22 2016 Saša Janiška wrote:
> recently I did asked author of vdir.el to provide support for
> using more than one repo vdir repo for the contacts since I manage
> email accounts for my & my wife on the desktop while she is mostly
> using mobile phone.
> 
> So, I’m interested if there is possibility to have more than one
> BBDB file - e.g. one for my contacts and another for my wife and
> being able to switch between the two before invoking BBDB?

Currently BBDB supports only one such file.  I'd like to extend
that.  This relates to one item that has been on my BBDB todo list
for a long time: add uuid fields to each record so that BBDB can
check more reliably whether two records are "equal".  Here uuid
fields will come handy in a range of use cases, with multiple
database files, but also, say when importing and exporting BBDB
records from / to other databases.

Here are a few thoughts about uuid fields, please comment:

I'd prefer not to make the uuid field another xfield because xfields
are really intended for custom fields.  If BBDB starts to use uuids,
it would probably happen such that you could really screw up BBDB if
you decided to delete these fields from your records (which is
always possible with xfields).

So the uuid field should become a "compulsory" field (appearing in
the "backbone" of each record).  This requires to change (once more)
the internal format of BBDB records.  Then I was wondering: Are
there other (unrelated) changes in BBDB's internal format of storing
records that would be desirable?  Here I thought of the two xfields
creation-date and timestamp.  For a long time, they have been
implemented as xfields.  Yet it would be cleaner if they likewise
became elements of the "backbone" of each BBDB records.

Did anybody already try to implement / use a uuid field as xfield?
I guess that when BBDB will upgrade itself to the new record format
using "backbone" uuid fields, it should check whether the records
already have such an xfield.

Roland

------------------------------------------------------------------------------
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/

Reply via email to