Discussion:
[turba] CardDAV: OS/X contacts and multiple Mobile Phone
Horst Simon
2015-11-01 23:44:01 UTC
Permalink
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?

Kind Regards,
Horst Simon
--
turba mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: tur
Michael J Rubinsky
2015-11-02 15:40:29 UTC
Permalink
Post by Horst Simon
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
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
Horst Simon
2015-11-02 22:21:51 UTC
Permalink
Post by Horst Simon
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:***@macbook.hsconsulting.com.au
FN:John Doe
EMAIL;TYPE=HOME:***@email.com
EMAIL;TYPE=WORK:***@mail.com
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.com
EMAIL;type=INTERNET;type=WORK:***@mail.com
TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555
UID:***@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:***@macbook.hsconsulting.com.au
FN:John Doe
EMAIL;TYPE=HOME:***@email.com
EMAIL;TYPE=WORK:***@mail.com
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.com
EMAIL;type=INTERNET;type=WORK:***@mail.com
TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555
TEL;type=CELL;type=VOICE:+1 5555 555 555
UID:***@macbook.hsconsulting.com.au
X-ABUID:DFC6A6D3-258E-450D-B47B-5CE30FE24CEE:ABPerson
END:VCARD

Regards,
Horst
--
turba mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: turba-unsu
Michael J Rubinsky
2015-11-03 03:28:30 UTC
Permalink
Post by Horst Simon
Post by Michael J Rubinsky
Post by Horst Simon
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
FN:John Doe
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
TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555
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
FN:John Doe
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
TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555
TEL;type=CELL;type=VOICE:+1 5555 555 555
X-ABUID:DFC6A6D3-258E-450D-B47B-5CE30FE24CEE:ABPerson
END:VCARD
Regards,
Horst
Thanks for the clarification, I know what's happening now.
--
mike
The Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
Michael J Rubinsky
2015-11-03 17:26:30 UTC
Permalink
Post by Horst Simon
Post by Michael J Rubinsky
Post by Horst Simon
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
FN:John Doe
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
TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555
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
FN:John Doe
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
TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555
TEL;type=CELL;type=VOICE:+1 5555 555 555
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
Post by Horst Simon
BEGIN:VCARD
VERSION:3.0
PRODID:-//Apple Inc.//Mac OS X 10.11.1//EN
N:Doe;John;;;
FN:John Doe
TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555
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:***@macbook.hsconsulting.com.au
FN:John Doe
EMAIL;TYPE=INTERNET:***@email.com
EMAIL:***@email.com
EMAIL:***@mail.com
EMAIL;TYPE=HOME:***@email.com
EMAIL;TYPE=WORK:***@mail.com
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 Horde Project
http://www.horde.org
https://www.facebook.com/hordeproject
https://www.twitter.com/hordeproject
Horst Simon
2015-11-03 21:01:36 UTC
Permalink
Post by Horst Simon
Post by Horst Simon
Post by Horst Simon
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
FN:John Doe
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
TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555
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
FN:John Doe
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
TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555
TEL;type=CELL;type=VOICE:+1 5555 555 555
X-ABUID:DFC6A6D3-258E-450D-B47B-5CE30FE24CEE:ABPerson
END:VCARD
Regards,
Horst
BEGIN:VCARD
VERSION:3.0
PRODID:-//Apple Inc.//Mac OS X 10.11.1//EN
N:Doe;John;;;
FN:John Doe
TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555
X-ABUID:DFC6A6D3-258E-450D-B47B-5CE30FE24CEE:ABPerson
END:VCARD
BEGIN:VCARD
VERSION:3.0
FN:John Doe
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:***@mail.com.au
EMAIL;type=INTERNET;type=WORK:***@mail.com.au
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: turba-unsubs
Michael J Rubinsky
2015-11-03 22:11:18 UTC
Permalink
No,  because  "Iphone" is not an allowed value for the Type attribute
per the vCard standard.

-mike
Sent from mobile. 

From: Horst Simon <***@optusnet.com.au>
Sent: Nov 3, 2015 4:01 PM
To: ***@horde.org
Cc: ***@lists.horde.org
Subject: Re: [turba] CardDAV: OS/X contacts and multiple Mobile Phone
Post by Horst Simon
Post by Michael J Rubinsky
Post by Horst Simon
Post by Michael J Rubinsky
Post by Horst Simon
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
FN:John Doe
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
TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555
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
FN:John Doe
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
TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555
TEL;type=CELL;type=VOICE:+1 5555 555 555
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
Post by Horst Simon
BEGIN:VCARD
VERSION:3.0
PRODID:-//Apple Inc.//Mac OS X 10.11.1//EN
N:Doe;John;;;
FN:John Doe
TEL;type=CELL;type=VOICE;type=pref:+1 5555 555 555
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
BEGIN:VCARD
VERSION:3.0
FN:John Doe
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
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: turba-unsu
Loading...