Description

This function disables the Apache SpamAssassin™ auto-delete spam feature.

Examples




https://hostname.example.com:2083/cpsess##########/execute/Email/disable_spam_autodelete



$cpanel = new CPANEL(); // Connect to cPanel - only do this once.

// Disable Apache SpamAssassin spam auto-delete feature.
$sa_settings = $cpanel->uapi(
    'Email', 'disable_spam_autodelete',

);

 



my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.

# Disable Apache SpamAssassin spam auto-delete feature.
my $sa_settings = $cpliveapi->uapi(
    'Email', 'disable_spam_autodelete',

);

 



<!-- Disable Apache SpamAssassin spam auto-delete feature. -->
[% execute('Email', 'disable_spam_autodelete',) %]

 



uapi --user=username Email disable_spam_autodelete 



{  
   "errors":null,
   "data":{  
      "spam_auto_delete":0
   },
   "messages":null,
   "warnings":null,
   "status":1,
   "metadata":{  

   }
}



Parameters

This function does not accept parameters.

Returns

ReturnTypeDescriptionPossible valuesExample
spam_auto_deleteBoolean

Whether the auto-delete spam feature is disabled.

0 is the only possible value.

0