Hi Lukas,

I am working to customize the Syncevolution and am facing issues with
combination of TYPE parameters.

The problem I am facing is that the syncevolution is not producing
FLAGS or the Bitmap values for the instances where there is a
combination of TYPES like HOME,INTERNET etc.

Below are the things that may help in reference

configuration xml for Syncevolution

Fieldlist:
*
*
      <field name="EMAIL" array="yes" compare="conflict" type="multiline"/>
      <field name="EMAIL_FLAGS" array="yes" compare="conflict" type="integer"/>
      <field name="EMAIL_LABEL" array="yes" compare="conflict" type="string"/>
     <field name="EMAIL_ID" array="yes" compare="conflict" type="integer"/>
*
*
*
Mimeprofile:
*
*
         <property name="EMAIL" suppressempty="yes">
            <value field="EMAIL"/>
            <position field="EMAIL" increment="1" minshow="1" repeat="array"/>
            <parameter name="TYPE" default="yes" positional="no" show="yes">
               <value field="EMAIL_FLAGS" combine="," conversion="multimix">
                  <enum name="WORK,INTERNET" value="B0"/>
                  <enum name="HOME,INTERNET" value="B1"/>
                  <enum name="INTERNET" value="B2"/>
                  <enum name="PREF" value="B3"/>
               </value>
            </parameter>
         </property>

vCard in addressbook (file based):

Before sync:
       EMAIL;WORK;INTERNET:w...@email.com
       EMAIL;HOME;INTERNET:h...@email.com
       EMAIL;INTERNET:inter...@email.com

After sync:
       EMAIL;INTERNET:w...@email.com
       EMAIL;INTERNET:h...@email.com
       EMAIL;INTERNET:inter...@email.com

Log shows the following :

- 17 :  multiline EMAIL           [1000, 100,     0] : <array with 3 elements>
                                     -- element    0 : "w...@email.com"
                                    -- element    1 : "h...@email.com"
                                     -- element    2 : "inter...@email.com"
- 18 :  integer EMAIL_FLAGS       [   0, 100,     0] : <array with 3 elements>
                                     -- element    0 : 4
                                     -- element    1 : 4
                                     -- element    2 : 4

What I understand from the logs is, syncevolution or the piece of
code, that sets the values of the flags according to the TYPE
mentioned in the vCard for EMAIL is working correctly for the EMAIL
address that is only of TYPE=INTERNET since it is setting a value of
"4" i.e. flag as 0100, which implies B2 is set. While for TYPE=
HOME,INTERNET it is not generating proper flag value "2" i.e. 0010 B1
is set

Please let me know if my understanding is wrong or there is any change
that needs to be made.

Thank you,
Rajesh

_______________________________________________
os-libsynthesis mailing list
os-libsynthesis@synthesis.ch
http://lists.synthesis.ch/mailman/listinfo/os-libsynthesis

Reply via email to