| 12345678910111213141516171819202122232425262728293031323334 |
- #!/usr/bin/python3
- # coding=utf-8
- # Doc
- # Script to extract Contacts from Sailfish Contact SQLite DB located at
- #
- #
- # Links
- # Projects Page: https://wiki.siningsoft.de/doku.php?id=sailfishos:projects:sailfish_contacts_rescue
- # FileFormatdescription: https://docs.fileformat.com/email/vcf/#vcf-30-example
- # Pytho vobject: http://eventable.github.io/vobject/
- # Version
- version=0.4
- # ChangeLog
- # 2021-08-03 - 0.1 - multiple E-Mails with different types are working correctly
- # 2021-08-09 - 0.2 - Phonenumbers with parameters, Addresses with parameters, E-Mail-Addresses with marameters
- # 2021-08-10 - 0.3 - load Avatars into VCards
- # 2021-08-28 - 0.4 - bugfixing after full exporting my contacts
- import vobject
- # Klasse Vererben
- class Address(Address):
- def replace(from,to):
- print("replace ".from." to ".to)
-
-
- # wir erstellen das Objekt
- vcf = vobject.vCard()
-
- vcf.add(addADR).value = vobject.vcard.Address(street=ADRstr, city=ADRcit, region=ADRreg, code=ADRcod,country=ADRcou)
|