Navigation

    Kopano
    • Register
    • Login
    • Search
    • Categories
    • Get Official Kopano Support
    • Recent
    Statement regarding the closure of the Kopano community forum and the end of the community edition

    import_rfc.py does not really work

    Kopano Groupware Core
    1
    1
    110
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • pixel
      pixel last edited by

      Hi@all,

      the migration of data to Kopano is a frustrating thing. Theoretically it is supposed to work, but in practice it is always complicated.

      The test environment:

      WebApp: 3.5.14.2539+111.1
      Kopano Core: 8.7.1
      

      the appropriate script from:
      https://stash.kopano.io/projects/KC/repos/kopanocore/browse/swig/python/kopano/scripts/import_rfc.py?at=refs%2Fheads%2Fkc-8.7.x

      A small address book exported from Thunderbird and Kolab to CVS. The result:

      • file from Thunderbird *
      root@saturn:~/scripts# ./import_rfc.py -u 'i.eckerter' -f contacts ickerter.vcf 
      Traceback (most recent call last):
        File "./import_rfc.py", line 30, in <module>
          folder.create_item(vcf=data)
        File "/usr/lib/python2.7/dist-packages/kopano/folder.py", line 483, in create_item
          item = _item.item(self, eml=eml, ics=ics, vcf=vcf, load=load, loads=loads, attachments=attachments, create=True, save=save)
        File "/usr/lib/python2.7/dist-packages/kopano/item.py", line 201, in __init__
          vcm.parse_vcf(vcf)
        File "/usr/lib/python2.7/dist-packages/icalmapi.py", line 211, in parse_vcf
          return _icalmapi.vcftomapi_parse_vcf(self, ical)
      MAPI.Struct.MAPIErrorCorruptData: MAPI error 8004011B (MAPI_E_CORRUPT_DATA)
      
      • File from Kolab *
        No error but only the first contact is imported.

      The cross check:

      Thunderbird export imported into Kolab -> Works
      Kolab export imported into Thunderbird -> Works
      Both files imported into Google -> works

      In addition I created a VCF export from Google and tried to import it into Kopano as mentioned above. Again, only the first record is imported.

      The only way I have found so far is Read the VCF export to Android and write it to Kopano via ActiveSync.

      This thing still has room for improvement!

      with best

      1 Reply Last reply Reply Quote 0
      • First post
        Last post