On Dec 22, 2010, at 9:41 , Patrick Ohly wrote:
=> if (DESCRIPTION==EMPTY) DESCRIPTION=SUMMARY;
I'm not sure what exactly the motivation for that code was. I copied it
from the Synthesis reference config. I could imagine that it was added
because some peers depend on having a description. I can ask Lukas.
Exactly. Some old devices (Nokia or Ericsson, don't remember exactly) did have a
single field for description and no summary field. Normal vCalendars on the other side
often have only a summary. So that's why this was added. Note that there's also
the opposite when receiving (in <incominscript>):
// eliminate description that is the same as summary
if (DESCRIPTION==SUMMARY) DESCRIPTION=EMPTY;
This avoids storing a "description" that is just a duplicate of the summary.
Note that duplicating the SUMMARY into an empty DESCRIPTION could be made conditional
using the ISAVAILABLE() function, which returns TRUE only if the peer explicitly lists a
field supported in the CTCAP (it returns FALSE when it is not supported, and EMPTY if the
peer does not have CTCap, meaning it is unknown if the field is supported or not):
if (ISAVAILABLE(SUMMARY)!=TRUE && DESCRIPTION==EMPTY) DESCRIPTION=SUMMARY;
This would do the duplication only if it is not known if the peer supports SUMMARY.
SyncEvolution mailing list