/usr/share/syncevolution/xml/scripting/06todo-priorities.xml is in syncevolution-common 1.4-1ubuntu4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | <macro name="VCALENDAR_20TO10_PRIORITY_CONVERSION"><![CDATA[
//vCalendar10 has different interpretation from iCalendar20 in 'priority'.
//see mappings:
// Category vCalendar1.0 iCalendar2.0
// undefined 0 0
// high 1 1 ~ 4
// normal 2 5
// low 3 6 ~ bigger
if(PRIORITY<5 && PRIORITY>0) {
PRIORITY=1;
}else if(PRIORITY==5){
PRIORITY=2;
}else if(PRIORITY>5){
PRIORITY=3;
} // 0 is undefined and remains unchanged
]]></macro>
<macro name="VCALENDAR_10TO20_PRIORITY_CONVERSION"><![CDATA[
if(PRIORITY==2) {
PRIORITY=5;
}else if(PRIORITY==3){
PRIORITY=7;
} //others remain unchanged
]]></macro>
<macro name="VCALENDAR10_BEFOREWRITE_SCRIPT"><![CDATA[
$VCALENDAR_20TO10_PRIORITY_CONVERSION;
]]></macro>
<macro name="VCALENDAR10_AFTERREAD_SCRIPT"><![CDATA[
$VCALENDAR_10TO20_PRIORITY_CONVERSION;
]]></macro>
|