Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Importing RelatedNames information #2372

Open
Scott8586 opened this issue Jan 30, 2019 · 5 comments
Open

Importing RelatedNames information #2372

Scott8586 opened this issue Jan 30, 2019 · 5 comments
Labels
carddav CardDAV and CalDAV protocols feature request

Comments

@Scott8586
Copy link

Scott8586 commented Jan 30, 2019

When importing .vcf files, related names relationships are not used to make relationships between the contract entries.

Example: I export Family A with Mother, Father and Child from MacOSX Contacts, each with appropriate RELATEDNAMES fields in the .vcf file, When importing into Monica, this information is not used to make relationships between the contact entries. It would be great if that could happen.

Thanks for all the hard work!

@asbiin
Copy link
Member

asbiin commented Jan 31, 2019

Hi @Scott8586
I don't see any RELATEDNAMES field in the vCard format rfc https://tools.ietf.org/html/rfc6350
Is it a standard field?
Thanks!

@asbiin
Copy link
Member

asbiin commented Jan 31, 2019

You mean RELATED https://tools.ietf.org/html/rfc6350#section-6.6.6 ?

@Scott8586
Copy link
Author

Scott8586 commented Jan 31, 2019

The record look like this (from Mac OSX Contact .vcf export):

BEGIN:VCARD
VERSION:3.0
PRODID:-//Apple Inc.//Mac OS X 10.14.2//EN
N:XXX;Blake;;;
FN:Blake XXX
BDAY:2017-02-28
item1.X-ABRELATEDNAMES;type=pref:Mallory Schultz XXX
item1.X-ABLabel:_$!<Mother>!$_
item2.X-ABRELATEDNAMES:Jamie XXX
item2.X-ABLabel:_$!<Father>!$_
CATEGORIES:Family
UID:b98419c1-e7d9-4d2e-9161-812065450f13
X-ABUID:638844E1-ADAA-4E9E-8606-51668C205577:ABPerson
END:VCARD

So I guess these fields do not adhere to either RFC. Not sure it's part of another standard or RFC - google doesn't seem to find X-RELATEDNAMES anywhere. I was hoping I could reuse the effort I put into my Contacts organization where possible.

Thanks for taking a look.

@Scott8586
Copy link
Author

I found this, which seems disappointing...

https://alessandrorossini.org/the-sad-story-of-the-vcard-format-and-its-lack-of-interoperability/

@asbiin
Copy link
Member

asbiin commented Jan 31, 2019

Very intersting thanks!
Well, contact relation management is not a standard, and that's one reason Monica exists in the first place...

You can perhaps propose a PR to take the advantages of all these so called standards, but it seems like a hard work!
A better solution is to use the API to import the relations from your contacts in you Monica instance.

@asbiin asbiin added carddav CardDAV and CalDAV protocols feature request labels Nov 13, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
carddav CardDAV and CalDAV protocols feature request
Projects
None yet
Development

No branches or pull requests

2 participants