Re: Issues with MySync DS / Android
Michael J Rubinsky <[email protected]>
| Newsgroups | gmane.comp.horde.sync |
|---|---|
| Message-ID | <20120902164138.Horde.ZwjCepcRtLVQQ8SC7-SwVoA@h4.theupstairsroom.com> |
Quoting Carsten Schumann <[email protected]>: > Am 2012-09-02 20:44, schrieb Michael J Rubinsky: >> Quoting Carsten Schumann <[email protected]>: >> >>> Hi Mike, >>> >>> as fas as I understand, the backends.php (for turba) does only >>> cover the data providers for the adressbook. These providers >>> (standard horde localsql database) work fine for me. My issue is >>> related to SyncML which is (as far as I understand) not covered by >>> the backends.php, is it? >> >> No, backends.php defines (among other things) the mappings available >> and how they map between turba's fields and the backend storage's >> fields. The sync code will only export mappings present in this file. >> E.g., the 'HOME' vCard attribute will only be exported if if the >> 'homePhone' mapping is present in backends.php. >> >> >> > > Ok, that was one thing I did not expect. I assume the > $INSTALLDIR/turba/config/backends.php is the correct file. I had a > look into that file but I found nothing that matches the VCARD > fields I found in my sync logs. I found some mappings that seem to > be the mapping between the sql data fields and the internal turba > fields. > > $cfgSources['localsql'] = array( > [...] > 'map' => array( > [...] > 'firstname' => 'object_firstname', > > So far, I understand the mapping mechanism. What I do not understand > is the mapping between "object_firstname" and the corresponding > VCARD field (I think it is the N field). Where can I find that > mapping? These mappings are not configurable. To see which Turba field is mapped to which VCARD attribute see the Turba_Driver::toVCard() method. in turba/lib/Driver.php -- mike The Horde Project (www.horde.org) [email protected] -- sync mailing list Frequently Asked Questions: http://wiki.horde.org/FAQ To unsubscribe, mail: [email protected]
smime.p7s
(application/pkcs7-signature, 5.9 KB) - not displayed