tmo1 / sms-ie

SMS Import / Export is a simple Android app that imports and exports SMS and MMS messages, call logs, and contacts from and to JSON / NDJSON files.
GNU General Public License v3.0
373 stars 39 forks source link

vcf export #177

Open bingoxo opened 8 months ago

bingoxo commented 8 months ago

Hi , do you mind changing export format of contacts from json to vcf (which can easily be imported anywhere) ?

tmo1 commented 8 months ago

I do not intend to do this. A core design goal of SMS I/E is to mirror Android's internal data representation as closely as possible. The flexibility of JSON is a good fit for Android's complex internal representation of contacts, and the code involved is relatively straightforward. Translating Android's internal representation to VCF would be more complicated and might entail dropping some metadata. Moreover, Android has native VCF export, so adding VCF support to SMS I/E is of limited value.

I might at some point consider the creation of a traditional (non-Android) OS tool to convert SMS I/E's JSON to VCF, if there appears to be significant interest in such a thing.

bingoxo commented 8 months ago

i hope you can consider at least giving option of choosing between json and vcf , android has native vcf export but not scheduled like your app

tmo1 commented 8 months ago

I don't plan to add VCF support to the app itself, since doing so would entail a non-trivial amound of code that would need to be written, debugged, and maintained, and I don't consider the benefit to be worth it. As I suggested above, I would consider the creation of a standalone utility to convert the JSON output to VCF, since coding such a tool in a language like Python for a normal operating system would be much easier than incorporating VCF support in the app itself.

bingoxo commented 1 month ago

i hope you can reconsider your decision because vcf format is universal and can be used in all contacts apps , your .json format isn't as universal

plus for some weird reason when using your app i kept getting some weird 30 MB+ .json contacts file when i have less than 1k contacts

tmo1 commented 1 month ago

i hope you can reconsider your decision because vcf format is universal and can be used in all contacts apps , your .json format isn't as universal

Thank you for your feedback, but my position set forth above remains the same.

plus for some weird reason when using your app i kept getting some weird 30 MB+ .json contacts file when i have less than 1k contacts

You can examine the JSON to see what's in there - perhaps it includes contact photos.