Server-side labels

How are the labels synchronized between the desktop and mobile versions of emClient?

I would like to set the labels with the help of filters on the server. The possibilities for rules would be much more extensive than the rules offered by the apps.

I had assumed that various mail headers would be used, but I couldn’t find anything.