SetDomainSpamCleaner()
From Rackspace Email & Apps API
This function will set the automatic action to be taken with messages that reside in the spam IMAP/webmail folder.
Parameters
Three strings, two integers
Administrative username (string), Administrative password (string), Domain name (string), Number of days to store a message before auto-deletion (int, 0 to disable), Number of messages to store in the spam folder before auto-deletion (int, 0 to disable)
Return Values
If successful, the return value of the function will be 1.
Consult the Result Code Table for a list of result codes and their meaning.