FJ Software Foren-Übersicht  
 Homepage   •  Suchen   •  FAQ   •  Mitgliederliste   •  Registrieren   •  Login
 Saving contacts to vcf Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Neues Thema eröffnenNeue Antwort erstellen
Autor Nachricht
AlexLev59



Anmeldedatum: 20.10.2024
Beiträge: 3

BeitragVerfasst am: Mo Dez 02, 2024 00:15 Antworten mit ZitatNach oben

Situation: there are several users in the program.
The first user has a regular phone with modem interface.
When saving his card to a file, it looks like this:

BEGIN:VCARD
VERSION:3.0
FN:_20 Russian Railroad Train
N:Russian Railroad Train;_20;;;
item1.EMAIL;TYPE=INTERNET:nfo@rzd.ru
item1.X-ABLabel:INTERNET
TEL;TYPE=CELL:88007750000
item2.URL:www.rzd.ru
item2.X-ABLabel:_$!<HomePage>!$_
CATEGORIES:myContacts
END:VCARD

The second user has a Google Android phone.
When saving his card to a file, it looks like this:

BEGIN:VCARD
VERSION:3.0
N:Russian Railroad Train;_20;;;
FN:_20 Russian Railroad train
TEL;TYPE=CELL;X-SYNCMLREF117687:88007750000
ITEM1.EMAIL;TYPE=PREF;X-SYNCMLREF117688:nfo@rzd.ru
ITEM1.X-ABLABEL:INTERNET
URL;TYPE=TYPE=TYPE=HOMEPAGE;X-SYNCMLREF117689:www.rzd.ru
CATEGORIES:My Contacts
X-ACCOUNT:com.google;alexander@gmail.com
X-IRMC-LUID:000000006183
END:VCARD.

The URL field is worth considering here.
According to https://ru.wikipedia.org/wiki/VCard.
It should be of the form:
URL:http://ru.wikipedia.org/Nikita0503
That is, there should be nothing unnecessary in it.
However, MyPhoneExplorer not only adds TYPE=HOMEPAGE;X-SYNCMLREF117689 to it, but also multiplies these “TYPE=” each time the file is saved.
Again, it is not clear: the format versions are the same 3.0, but the way URLs are written is different for different users.

Second question.
In vcf cards, commas occurring in text fields are all escaped with a slash: “\,”.
I understand that https://stackoverflow.com/questions/21105600/can-vcard-2-1-name-property-have-commas-in-its-components
says that comma escaping is not required.
Anyway, I've practically verified that to import contacts into https://contacts.google.com/.
the comma escaping slashes removed from the file have no effect on the import.
Moreover, software libraries deserialize the file and add this slash to the text value of the contact card itself.

Third question.

A user with Google Android has all his contacts uploaded to vcf, not only his Google account, but all his contacts in general: Telegram, USIM and others.
And it is impossible to filter it somehow.
Benutzer-Profile anzeigenPrivate Nachricht senden
FJ
Site Admin


Anmeldedatum: 15.02.2006
Beiträge: 31872
Wohnort: Tirol

BeitragVerfasst am: Mo Dez 02, 2024 22:51 Antworten mit ZitatNach oben

Zitat:
However, MyPhoneExplorer not only adds TYPE=HOMEPAGE;X-SYNCMLREF117689 to it, but also multiplies these “TYPE=” each time the file is saved.
Again, it is not clear: the format versions are the same 3.0, but the way URLs are written is different for different users.

The problem with X-SYNCMLREF can be fixed easily. But i was not able to reproduce the issue with the multiplying TYPE= so what i have to do to see this issue?

Zitat:
A user with Google Android has all his contacts uploaded to vcf, not only his Google account, but all his contacts in general: Telegram, USIM and others.
And it is impossible to filter it somehow.

The account is stored in the X-ACCOUNT Tag

_________________
Ich bitte um Verständnis daß ich aufgrund des hohen Aufkommens im Forum und meines zeitlichen Rahmens nichtmehr jeden Thread im Forum persönlich lesen bzw. beantworten kann.

Bitte benutzt auch die Forum-Suche bzw. die FAQ
Benutzer-Profile anzeigenPrivate Nachricht sendenE-Mail sendenICQ-Nummer
AlexLev59



Anmeldedatum: 20.10.2024
Beiträge: 3

BeitragVerfasst am: Do Dez 05, 2024 01:23 Antworten mit ZitatNach oben

FJ, Let me start with the backstory, when I synchronized my Android phone contacts with MyPhoneExplorer, several contact sources appeared in MyPhoneExplorer: Google, Telegram and so on.
Two of the contacts had a URL. This is how it was uploaded to the file as I wrote earlier.
To add a new “TYPE=” - it was enough to make a new saving of contacts to the file.
I uploaded the uploaded contacts to Google account, and there was a duplication of contacts, and all of them: Google account, bank, Telegram, USIM - as Google account.
So I had to do some cleaning: I deleted all contacts on the phone, debugged the necessary MyPhoneExplorer, in phone mode with COM connection, and then synchronized with Google account and Android phone.
Now the “TYPE=” is no longer multiplying and I can't repeat this problem.

And I noticed that if I load the insurance copy of the contacts into the COM phone via MyPhoneExplorer, they automatically appear on the Android phone, but not the other way around.
I also cleaned the phone with COM connection beforehand, but it did not immediately clear all the remaining contacts in MyPhoneExplorer.

And although I didn't change synchronization settings in Android phone, but now I have only one source of contacts in MyPhoneExplorer - Google account.
In order to avoid such problems, I suggest that when exporting all contacts to vcf file from MyPhoneExplorer, I should filter which contacts to export by their source.
For example, if Google account contacts are selected, then save them to the file.
And since it is possible to inattentively not notice on which source of contacts the choice is set, you can separately display a window with the proposed choice of which contacts to export, for this purpose you can provide multiple choices.
Filtering one or more sources is no problem at all in this case, you yourself say that they are characterized by the corresponding tag (X-ACCOUNT).

One more thing.
When exporting contacts from MyPhoneExplorer to a file, their cards are uploaded not in the order they are presented in the MyPhoneExplorer window.
Their sorting in the window can be changed quickly, so perhaps it would be more convenient to export them to a file exactly in the order they are presented on the screen.
At least, it is possible to add the option to the program settings.
Benutzer-Profile anzeigenPrivate Nachricht senden
Beiträge der letzten Zeit anzeigen:      
Neues Thema eröffnenNeue Antwort erstellen


 Gehe zu:   



Nächstes Thema anzeigen
Vorheriges Thema anzeigen
Du kannst keine Beiträge in dieses Forum schreiben.
Du kannst auf Beiträge in diesem Forum nicht antworten.
Du kannst deine Beiträge in diesem Forum nicht bearbeiten.
Du kannst deine Beiträge in diesem Forum nicht löschen.
Du kannst an Umfragen in diesem Forum nicht mitmachen.

Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme :: Alle Zeiten sind GMT + 1 Stunde
Deutsche Übersetzung von phpBB.de