Funambol: force iCalendar 2.0 mode in the config template

As testing shows, results are better when sending items as
iCalendar 2.0 even though the server claims that it prefers
vCalendar 1.0.
This commit is contained in:
Patrick Ohly 2009-07-08 17:56:49 +02:00
parent 0c6c37680d
commit 1ba96c44e6
6 changed files with 22 additions and 5 deletions

12
NEWS
View file

@ -1,3 +1,15 @@
UPGRADING
When enabling calendar and todo synchronization with Funambol
in an existing configuration, set the type so that iCalendar 2.0 is
used:
syncevolution --configure --source-type sync=two-way funambol calendar todo
syncevolution --configure --source-type type='calendar:text/calendar!' funambol calendar
syncevolution --configure --source-type type='todo:text/calendar!' funambol todo
When creating a configuration anew, this is not necessary because the
configuration template contains those types.
SyncEvolution 0.9 beta 1 -> 0.9 beta 2, 12.06.2009
--------------------------------------------------
Synthesis SyncML Engine version: see src/synthesis/ChangeLog

View file

@ -1757,15 +1757,15 @@ private:
"calendar/config.ini:uri = cal2",
"calendar/config.ini:uri = event");
boost::replace_first(config,
"calendar/config.ini:sync = two-way",
"calendar/config.ini:sync = disabled");
"calendar/config.ini:type = calendar",
"calendar/config.ini:type = calendar:text/calendar!");
boost::replace_first(config,
"todo/config.ini:uri = task2",
"todo/config.ini:uri = task");
boost::replace_first(config,
"todo/config.ini:sync = two-way",
"todo/config.ini:sync = disabled");
"todo/config.ini:type = todo",
"todo/config.ini:type = todo:text/calendar!");
return config;
}

View file

@ -269,9 +269,11 @@ boost::shared_ptr<EvolutionSyncConfig> EvolutionSyncConfig::createServerTemplate
source = config->getSyncSourceConfig("calendar");
source->setSync("two-way");
source->setURI("event");
source->setSourceType("calendar:text/calendar!");
source = config->getSyncSourceConfig("todo");
source->setSync("two-way");
source->setURI("task");
source->setSourceType("todo:text/calendar!");
} else if (boost::iequals(server, "synthesis")) {
config->setSyncURL("http://www.synthesis.ch/sync");
config->setWebURL("http://www.synthesis.ch");

View file

@ -1,2 +1,3 @@
uri = event
sync = two-way
type = calendar:text/calendar!

View file

@ -1,2 +1,3 @@
uri = task
sync = two-way
type = todo:text/calendar!

View file

@ -21,7 +21,8 @@ This document is used to show interoperability test information with funambol se
CLIENT_TEST_EVOLUTION_PREFIX=file:///tmp/test/
* Test Profiles Settings
Make sure you calendar type set as 'calendar:text/calendar!' to force to use ical20
Make sure your calendar type is 'calendar:text/calendar!'
and task type is 'tasks:text/calendar!' to force to use ical20
* Data formats we need to test:
Client::Sync::vcard21