Collection Contents Previous Next PDF

MobiLink Server-Initiated Synchronization User's Guide

Setting Up Server-Initiated Synchronization

Listeners

Message handlers

Using the filters message, message_start, and sender

The recommended filters are called subject and content. However, there are three other types of filter that you may also want to use.

The Listener translates non-printable characters in a message to a tilde (~) so if there are non-printable characters, the filter must also use tildes.

Multiple message handlers may be required 

Subject and content are the recommended filters when messages arrive in a compatible format. However, if your message format is incompatible, you need to use the message, message_start, and/or sender filters. In that case, if the delivery path can vary (sometimes through UDP and sometimes through SMTP), then you need multiple handlers with different filters.

For example, if you sent a message of the form sub, content through a UDP gateway, it would arrive as [sub]content. But if you sent it through an SMTP gateway, it might be rendered as mySender@mySite.com \n sub \n content. To catch a message that has the subject sub, you would need two message handlers, with the following filters:

-l "subject='sub';action=..."
-l "message_start='mySender@mySite.com ~ sub ~ ';action=..."

For more information about the Listener, see The Listener.


Collection Contents Previous Next PDF