[turba] Purge address book before importing vCards
Luca Bertoncello
lucabert at lucabert.de
Thu Mar 1 21:02:13 UTC 2018
Hi again,
After I found a solution to import my vCards from command line, I have
another problem...
turba-import-vcards does NOT overwrite or purge the address book before
importing the new data, so that I have duplicated entries...
I found this:
http://horde.690.n7.nabble.com/Address-book-contents-delete-td121245.html
so that I added:
$injector->getInstance('Turba_Factory_Driver')->create($source)->deleteAll();
just before the:
$result = $registry->call('contacts/import', array($vcard, 'text/x-vcard',
$source));
Of course it does NOT work... :(
I get this error:
HORDE: [imp] The address book "_phTjiDdxi4KDv2Nbq25nf7" does not exist. [pid 11676 on line 68 of "/home/www/horde/turba/lib/Factory/Driver.php"]
Fatal Error:
The address book "_phTjiDdxi4KDv2Nbq25nf7" does not exist.
In /home/www/horde/turba/lib/Factory/Driver.php on line 68
1. Turba_Factory_Driver->create() /home/lucabert/turba-import-vcards:46
Can someone help me? Maybe is it the same problem (using IMP to authenticate
the user) as by the import? How can I solve it?
Thanks a lot
Luca Bertoncello
(lucabert at lucabert.de)
More information about the turba
mailing list