import_rfc.py does not really work
-
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.xA 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 -> worksIn 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