[Tickets #14789] BugFix CLI import + delete previous data on CLI import

[email protected]
Newsgroups gmane.comp.horde.bugs
Message-ID <[email protected]>
BITTE NICHT AUF DIESE NACHRICHT ANTWORTEN. NACHRICHTEN AN DIESE  
E-MAIL-ADRESSE WERDEN NICHT GELESEN.

Ticket-URL: https://bugs.horde.org/ticket/14789
------------------------------------------------------------------------------
  Ticket           | 14789
  Erstellt Von     | [email protected]
  Zusammenfassung  | BugFix CLI import + delete previous data on CLI import
  Warteschlange    | Turba
  Version          | 4.2.21
  Typ              | Enhancement
  Status           | New
  Priorität        | 2. Medium
  Milestone        |
  Patch            | 1
  Zuständige       |
------------------------------------------------------------------------------


[email protected] (2018-03-04 07:29) hat geschrieben:

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->getInstance('Turba_Factory_Driver')->create($source)->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  
'delete_previous' 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.



[email protected] (2018-03-04 07:29) hat hochgeladen: turba-import.patch

https://bugs.horde.org/h/services/download/?app=whups&actionID=download_file&file=turba-import.patch&ticket=14789&fn=%2Fturba-import.patch



-- 
bugs mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.