Connect. Communicate. Collaborate. Securely.

Home » Developer Zone » API/SDK Writers » Long time ... (Some questions)
  •  
nhoague

Messages: 853
Karma: 18
Send a private message to this user
Hello,

I am trying to solve a problem we have. Problem is during some times in the day the message queue gets so full because the spam server can't keep up with inbound email.

I would like to a) find out how many messages are in the queue, and b) stop/start the spam filter service.

I would think to use MessageThroughput, but can't figure out the right syntax.

Help?

And could you also provide a sample code for stopping and starting spam server?

Thanks!
  •  
nhoague

Messages: 853
Karma: 18
Send a private message to this user
I think I figured it out by working backwards. I looked at past posts and seems I was once again trying to with an object.

So, I found if I do Queue.getProcessed it will show me what I want. Now, working on how to stop the spam server. Smile
  •  
nhoague

Messages: 853
Karma: 18
Send a private message to this user
Wowzers ... such small code, so much time ... but I got i!

For anyone else:

{
"jsonrpc":"2.0",
"id":1,
"method":"Content.setAntiSpamSetting",
"params":{
"setting":{
"isRatingEnabled":false
}
}
}
Previous Topic: ClamAV Plugin for Windows
Next Topic: Connect: How to get active user info
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Mon Aug 21 21:40:34 CEST 2017

Total time taken to generate the page: 0.00938 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.