On Do, 2011-08-18 at 18:18 +0200, Lukas Zeller wrote:
> This is provided by Evolution:
> [...]
>
> X-EVOLUTION-FILE-AS:spouse\, name
>
> [...]
>
> This is sent to Memotoo as:
>
> X-EVOLUTION-FILE-AS:spouse, name
>
> [...]
>
> Note that the comma was not considered special by the Synthesis
encoder.
> My memory is a bit fuzzy: is escaping it optional in vCard 3.0
optional
> and/or does this depend on whether the property is meant to be a
> comma-separated list? Lukas?
For vCard 2.1, the engine only escapes when the contents is really a
comma separated list.
For vCard 3.0, commas are always escaped.
That explains it then. X-EVOLUTION-FILE-AS is defined as a normal
property in the SyncEvolution config:
<field name="FILE-AS" type="string"
compare="conflict"
merge="fillempty"/>
[...]
<property name="X-EVOLUTION-FILE-AS">
<value field="FILE-AS"/>
</property>
It gets sent as vCard 2.1 and thus the comma is not escaped.
Regarding comma handling in wildcard properties: I can reproduce that
the comma is getting duplicated. However, your patch doesn't help. I
need to look more closely before I can say why.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.