Hi, Is there a TDE native diff tool to compare two addressbooks?
If no, it might be that I have a simple one - I played last weekend a bit with that topic as I wanted to know how many addressbook entries are different and the same in two address books.
I was first thinking to use TDEABC::Addressbook, but found out that I need TDE running and my goal was to have a command line tool. So I wrote some simple parser and use TDEABC::Addressee to compare (a1==a2) items from two lists (for now).
I also had to laugh, because I found this:
TQString Addressee::asString ( ) const
Returns string representation of the addressee.
Definition at line 626 of file addressee.src.cpp.
626 TQString Addressee::asString() const 627 { 628 return "Smith, agent Smith..."; 629 }
this makes me wonder if the compare operator is actually reliable.
thanks in advance regards
On Friday 06 November 2020, deloptes wrote:
Hi, Is there a TDE native diff tool to compare two addressbooks?
If no, it might be that I have a simple one - I played last weekend a bit with that topic as I wanted to know how many addressbook entries are different and the same in two address books.
I was first thinking to use TDEABC::Addressbook, but found out that I need TDE running and my goal was to have a command line tool. So I wrote some simple parser and use TDEABC::Addressee to compare (a1==a2) items from two lists (for now).
I also had to laugh, because I found this:
TQString Addressee::asString ( ) const
Returns string representation of the addressee.
Definition at line 626 of file addressee.src.cpp.
626 TQString Addressee::asString() const 627 { 628 return "Smith, agent Smith..."; 629 }
this makes me wonder if the compare operator is actually reliable.
thanks in advance regards
kdiff / kdiff 3
I'm sure there are more. Await the collective's reply!
I think you will have to export the files and them compare that way.
Kate
BorgLabs - Kate Draven wrote:
kdiff / kdiff 3
I'm sure there are more. Await the collective's reply!
I think you will have to export the files and them compare that way.
Kate
No, Kate, you can't use kdiff on such file. It is similar to using kdiff on xml files. the addressbook file contains VCARD entries, so the tool should examine/compare each VCARD entry against the one from the other file. Consequently there could be exact match (for example entry was copied manually and ID was preserved) or content match (ID is different, but content the same - for example when you copy the addressee from one addressbook into another within kontact it would generate a new ID )
The simple tool I wrote says both files have 277 entries from which 153 are the same - which sounds reasonable to me, but if there is already such a tool I would not spend time in this exercise.