Request packet sample
The packet retrieving status of Spam Filtering service looks as follows:
<packet version="1.4.2.0">
<spamfilter>
<check/>
</spamfilter>
</packet>
A positive response from the server looks as follows:
<packet version="1.4.2.0">
<spamfilter>
<check>
<status>ok</status>
</check>
</spamfilter>
</packet>
If the SpamAssassin service is restricted by Plesk licence key, or a user does not have access to SpamAssassin management, the response is as follows:
<packet version="1.4.2.0">
<spamfilter>
<check>
<result>
<status>error</status>
<errcode>1006</errcode>
<errtext>Permission denied.</errtext>
</result>
</check>
</spamfilter>
</packet>
If the SpamAssassin service was not found on the server, the response is as follows:
<packet version="1.4.2.0">
<spamfilter>
<check>
<result>
<status>error</status>
<errcode>1026</errcode>
<errtext>Component is not installed.</errtext>
</result>
</check>
</spamfilter>
</packet>