Synthesis AG - SyncML Discussion Forum  

Go Back   Synthesis AG - SyncML Discussion Forum > Synthesis SyncML-Produkte (deutsch) > Andere SyncML clients (Sunbird, Outlook beta, Console, etc.)

Reply
 
Thread Tools Display Modes
  #1  
Old 2007-02-23, 23:57
Frank Loeliger Frank Loeliger is offline
Junior Member
 
Join Date: 2006-12
Posts: 3
Default acceptfilter for empty VCards

Hi together

in certain circumstances some outlook versions deliver vcards which only have set the FN information for a contact. I want to ensure, that it is
1) NOT deleted on the clients side (This contact might represent more than just this FN information in the clients semantic).
2) NOT added to my server
What would be the best way to accomplish this?

In a first approach I tried to use the serversides <acceptfilter> mechanism, which might not be the optimal solution as it reports an error 415 to the client.

Anyhow, I struggled with the TAF Syntax:

Following examples are well-formed in my context:
<acceptfilter>N_LAST="test"|N_LAST:="dummy"</acceptfilter>
<acceptfilter>N_LAST="test"</acceptfilter>
<acceptfilter>N_LAST*=E</acceptfilter>

But what I think I need is something like the following Filter, which is rejected as not well-formed:

<acceptfilter>N_LAST*<>E</acceptfilter>

2007-02-23 21:30:13: not well-formed at line 1125 col 27
2007-02-23 21:30:13: Fatal error 20010, no valid configuration could be read from XML file

Any idea or support is very welcome.
__________________
Frank

Last edited by Frank Loeliger; 2007-02-24 at 00:18. Reason: vCard is not absolutely empty...
Reply With Quote
  #2  
Old 2007-02-25, 00:39
luz's Avatar
luz luz is offline
plan44.ch
 
Join Date: 2006-06
Posts: 348
Default Re: acceptfilter for empty VCards

The term "well-formed" relates to the XML syntax, not the filter's.
The "<" and ">" are making problems in XML, you need to write them as &lt; and &gt;, resp., or use a <[CDATA[ ... ]]> around the entire filter term - the latter is probably more readable.

Note that with the PRO server, you can also use a <processitemscript> to check a item's data and then reject it with error or silently ignore it (and a number of other interesting things ).
__________________
Lukas Zeller, plan44.ch
Reply With Quote
  #3  
Old 2007-03-15, 22:04
Frank Loeliger Frank Loeliger is offline
Junior Member
 
Join Date: 2006-12
Posts: 3
Thumbs up Re: acceptfilter for empty VCards

Thanks!

It is obvious, after having read your answer
__________________
Frank
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +2. The time now is 07:28.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.