<?xml version="1.0" encoding="UTF-8"?> 
<?xml-stylesheet href="https://dev.horde.org/themes/horde//default/feed-rss.xsl" type="text/xsl"?> 
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> 
 <channel> 
  <title>BugFix CLI import + delete previous data on CLI import</title> 
  <pubDate>Thu, 09 Apr 2026 17:31:28 +0000</pubDate> 
  <link>https://bugs.horde.org/ticket/14789</link> 
  <atom:link rel="self" type="application/rss+xml" title="BugFix CLI import + delete previous data on CLI import" href="https://bugs.horde.org/ticket/14789/rss" /> 
  <description>BugFix CLI import + delete previous data on CLI import</description> 
 
   
   
  <item> 
   <title>BugFix:
CLI import always said that no address book was fou</title> 
   <description>BugFix:
CLI import always said that no address book was found (see thread https://lists.horde.org/archives/turba/Week-of-Mon-20180219/007236.html).
The problem was that if IMAP ist used to authenticate the user the IMP module must be loaded.

Enhancement:
A very useful option to allow deleting all previous data in an address book to avoid duplicated entries and/or old entries no more valid.
Since calling

$injector-&gt;getInstance(&#039;Turba_Factory_Driver&#039;)-&gt;create($source)-&gt;deleteAll();

from outside the Api-class always results in an error that the source does not exists, I added the feature to allow the user deleting all previous data in an address book by passing the option &#039;delete_previous&#039; to the import function.

A patch for the BugFix and the enhancement (files: turba/lib/Api.php and turba-import-vcards) is attached.
In this version of turba-import-vcards the option to purge previous data is default.

I hope these fixes will be soon imported in the main code of Horde.</description> 
   <pubDate>Sun, 04 Mar 2018 07:29:07 +0000</pubDate> 
   <link>https://bugs.horde.org/ticket/14789#t92777</link> 
  </item> 
   
   
 
 </channel> 
</rss> 
