khard icon indicating copy to clipboard operation
khard copied to clipboard

Add MEMBER and RELATED Properties

Open minch4 opened this issue 3 years ago • 6 comments

Hello =)

if anyone has time for the implementation of :

  • MEMBER (https://tools.ietf.org/html/rfc6350#section-6.6.5)
  • RELATED (https://tools.ietf.org/html/rfc6350#section-6.6.6)

it would be nice =D

minch4 avatar Aug 25 '20 09:08 minch4

I am open to pull request.

lucc avatar Aug 27 '20 20:08 lucc

As noted in this vdirsyncer issue, the combination google contacts + vdirsyncer doesn't properly handle these fields and creates item1.X-ABRELATEDNAMES and matching item1.X-ABLabel field but khard item1.X-ABRELATEDNAMES:name_of_the_child or khard name_of_the_child doesn't find the contact.

dinojr avatar Feb 19 '21 09:02 dinojr

google contacts + vdirsyncer doesn't properly handle these fields and creates item1.X-ABRELATEDNAMES and matching item1.X-ABLabel field

Google seems to do this their end - if you do a Takeout as VCF it will use this form.

but khard item1.X-ABRELATEDNAMES:name_of_the_child or khard name_of_the_child doesn't find the contact.

khard name_of_the_child should list the contact - my khard does. khard show name_of_the_child should show the full contact. What version of khard are you using?

d7415 avatar Feb 19 '21 09:02 d7415

khard name_of_the_child should list the contact - my khard does. khard show name_of_the_child should show the full contact. What version of khard are you using

I tried with the v0.17.0. from Ubuntu and Khard version 0.17.1.dev47+g57b5bbc from git, still not showing with python -m khard name_of_the_child. The card of the mother (with the item.X-AB*** field in it) is found when looking for her name, and some other cards bearing the same name as the child looked for are found by khard name_of_the_child though. I tried changing the child name name in the vcf file to something unique among my vcards but it wasn't found either.

dinojr avatar Feb 19 '21 11:02 dinojr

Ok. I just checked again with 57b5bbc (I was a little behind) and I'm still getting correct results. I've tried with several of my contacts with item1.X-ABRELATEDNAMES style fields and all are working fine.

Does yours work with this minimal VCARD?

BEGIN:VCARD
VERSION:3.0
UID:bgd94fikayue7f0yn88fk9d4w1v3sxuov17m
FN:John Smith
N:Smith;John;;;
REV:20210219T111150Z
item1.X-ABLABEL:Child
item1.X-ABRELATEDNAMES:Jenny
END:VCARD

Edit: This should probably be broken out into its own issue as it's now a bug report unrelated to the initial feature request.

d7415 avatar Feb 19 '21 11:02 d7415

With your example vcf file, Khard 0.17.1.dev47+g57b5bbc, picks up john smith but not jenny. I'll open a different issue.

dinojr avatar Feb 19 '21 11:02 dinojr