Re: CardDAV: OS/X contacts and multiple Mobile Phone
Michael J Rubinsky <[email protected]> Tue, 03 Nov 2015 22:11:18 +0000
| Newsgroups | gmane.comp.horde.turba |
|---|---|
| Message-ID | <20151103221118.Horde.lWQcyIWvM0ncTsfpSlm6jte@h4.theupstairsroom.com> |
No, because "Iphone" is not an allowed value for the Type attribute per the vCard standard. -mike Sent from mobile. From: Horst Simon <[email protected]> Sent: Nov 3, 2015 4:01 PM To: [email protected] Cc: [email protected] Subject: Re: [turba] CardDAV: OS/X contacts and multiple Mobile Phone > > >> On 04 Nov 2015, at 04:26, Michael J Rubinsky <[email protected]> wrote: >> >> >> Quoting Horst Simon <[email protected]>: >> >>>> On 03 Nov 2015, at 02:40, Michael J Rubinsky <[email protected]> wrote: >>>> >>>> >>>> Quoting Horst Simon <[email protected]>: >>>> >>>>> Hi, >>>>> >>>>> I added in backends.local.php a second cellphone object as >>>>> 'homeCellPhone' => 'object_homecellphone’, and too added the >>>>> object in the SQL database to the turbo_objects. This object is >>>>> already defined in attributes.php. >>>>> >>>>> It works fine in the Webmails address book and it initial >>>>> synchronises with the OS/X Contacts using CardDAV, but I see the >>>>> same issue as described in Ticket #14046 when syncing additional >>>>> E-Mail Fields with CardDav, which is fixed, can the same be >>>>> applied to the Mobile Phone fields? >>>>> >>>>> I checked with an EGroupware server, they have too two Mobile >>>>> phone fields and sync one field with the mobile field and the >>>>> other with the iPhone field on OS/X contacts, can something >>>>> similar be done in Turba? >>>> >>>> Can you please explain *exactly* what you are seeing? The issue >>>> with the email field you reference was happening when there is >>>> only a general "email" field defined that is not a "work" or >>>> "home" field, but the imported VCARD may contain a specific type. >>>> In your case, it sounds to me like your phone mappings do not >>>> match the mappings from the data source you are importing from. >>>> I.e., it looks like you have only specific types defined, so >>>> maybe your imported vCARD contains only a generic PHONE type? If >>>> you can provide a vCard file too, that would be helpful. >>>> >>>> -- >>>> mike >>> >>> As explained, I have added the homeCellPhone attribute as >>> described. Now when I have an entry on the Horde address book in >>> Home Mobile Phone only it shows up on the OS/X Contacts client in >>> mobile. If I motive this card on the client it will duplicate this >>> phone number and it is shown twice as mobile. When I check now the >>> Horde Address Book it shows the same number in Mobile Phone and >>> Home Mobile Phone. If I have only one entry in the Mobile Phone >>> attribute it will not be duplicated and if I have different phone >>> numbers in it it too shows up correct on the OS/X contacts list, >>> but both show up under mobile. >>> >>> Following is the vCard before Client (OS/X Contacts) edit exported >>> von Horde >>> >>> BEGIN:VCARD >>> VERSION:3.0 >>> UID:20151103090606.TyESyhrsEXKe9kKHPbpyIgz@macbook.hsconsulting.com.au >>> FN:John Doe >>> EMAIL;TYPE=HOME:[email protected] >>> EMAIL;TYPE=WORK:[email protected] >>> TEL;TYPE=CELL,HOME,VOICE:+1 5555 555 555 >>> N:Doe;John;;; >>> END:VCARD >>> >>> Exported from Client >>> >>> BEGIN:VCARD >>> VERSION:3.0 >>> PRODID:-//Apple Inc.//Mac OS X 10.11.1//EN >>> N:Doe;John;;; >>> FN:John Doe >>> EMAIL;type=INTERNET;type=HOME;type=pref:[email protected] >>> EMAIL;type=INTERNET;type=WORK:[email protected] >>> TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555 >>> UID:20151103090606.TyESyhrsEXKe9kKHPbpyIgz@macbook.hsconsulting.com.au >>> X-ABUID:DFC6A6D3-258E-450D-B47B-5CE30FE24CEE:ABPerson >>> END:VCARD >>> >>> Following is after client (OS/X Contacts) edit exported von Horde >>> >>> BEGIN:VCARD >>> VERSION:3.0 >>> UID:20151103090606.TyESyhrsEXKe9kKHPbpyIgz@macbook.hsconsulting.com.au >>> FN:John Doe >>> EMAIL;TYPE=HOME:[email protected] >>> EMAIL;TYPE=WORK:[email protected] >>> TEL;TYPE=CELL,VOICE:+1 5555 555 555 >>> TEL;TYPE=CELL,HOME,VOICE:+1 5555 555 555 >>> N:Doe;John;;; >>> END:VCARD >>> >>> Exported from Client >>> >>> BEGIN:VCARD >>> VERSION:3.0 >>> PRODID:-//Apple Inc.//Mac OS X 10.11.1//EN >>> N:Doe;John;;; >>> FN:John Doe >>> EMAIL;type=INTERNET;type=HOME;type=pref:[email protected] >>> EMAIL;type=INTERNET;type=WORK:[email protected] >>> TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555 >>> TEL;type=CELL;type=VOICE:+1 5555 555 555 >>> UID:20151103090606.TyESyhrsEXKe9kKHPbpyIgz@macbook.hsconsulting.com.au >>> X-ABUID:DFC6A6D3-258E-450D-B47B-5CE30FE24CEE:ABPerson >>> END:VCARD >>> >>> Regards, >>> Horst >> >> I can't reproduce this. If I import the vCard below into Horde >> when the contact does not already exist: >> >>> BEGIN:VCARD >>> VERSION:3.0 >>> PRODID:-//Apple Inc.//Mac OS X 10.11.1//EN >>> N:Doe;John;;; >>> FN:John Doe >>> EMAIL;type=INTERNET;type=HOME;type=pref:[email protected] >>> EMAIL;type=INTERNET;type=WORK:[email protected] >>> TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555 >>> UID:20151103090606.TyESyhrsEXKe9kKHPbpyIgz@macbook.hsconsulting.com.au >>> X-ABUID:DFC6A6D3-258E-450D-B47B-5CE30FE24CEE:ABPerson >>> END:VCARD >> >> >> Then in Horde, I see exactly only the cellPhone field populated, >> which is correct. No other phone fields are filled in. If I export >> this contact, I see: >> >> BEGIN:VCARD >> VERSION:3.0 >> UID:20151103090606.TyESyhrsEXKe9kKHPbpyIgz@macbook.hsconsulting.com.au >> FN:John Doe >> EMAIL;TYPE=INTERNET:[email protected] >> EMAIL:[email protected] >> EMAIL:[email protected] >> EMAIL;TYPE=HOME:[email protected] >> EMAIL;TYPE=WORK:[email protected] >> TEL;TYPE=CELL,VOICE:+1 5555 555 555 >> N:Doe;John;;; >> END:VCARD >> >> >> It looks like what is happening to you is that your client does not >> recognize the homeCellPhone field (it's only exporting >> 'CELL,VOICE', not 'CELL,VOICE,HOME'. So, when it's updated within >> Horde, it sees that as the CELL,VOICE field. This is really a >> client error/issue, and not a Horde issue. We are importing the >> data as provided. >> >> -- >> mike > > The OS/X client has type=CELL; type=Voice and type=IPHONE; > Type=CELL; type=Voice; can the second mobile be matched to the > IPHone type? > > BEGIN:VCARD > VERSION:3.0 > PRODID:-//Apple Inc.//Mac OS X 10.11.1//EN > N:Doe;John;;; > FN:John Doe > EMAIL;type=INTERNET;type=HOME;type=pref:[email protected] > EMAIL;type=INTERNET;type=WORK:[email protected] > TEL;type=CELL;type=VOICE;type=pref:+61 555 555 555 > TEL;type=IPHONE;type=CELL;type=VOICE:+61 4 4444 4444 > UID:1f55e214-b787-4a9d-8b01-c1188d4fb3f1 > X-ABUID:1F55E214-B787-4A9D-8B01-C1188D4FB3F1:ABPerson > END:VCARD > > Horst -- turba mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]