CMD_API_SPAMASSASSIN -> must include the blacklist

kima

New member
Joined
Jul 20, 2013
Messages
3
I do the following with my api:

PHP:
$sock->query('/CMD_API_SPAMASSASSIN',
                array(
                    'action' => 'save',
                    'domain' => 'example.com',
                    'high_score' => '10',
                    'high_score_block' => 'yes',
                    'is_on' => 'yes',
                    'report_safe' => '2',
                    'required_hits' => '5',
                    'rewrite_subject' => '1',
                    'subject_tag' => '**SPAM**',
                    'rewrite_header' => '**SPAM**' ,
                    'where' => 'spamfolder',
                    'blacklist_from0' => '[email protected]' ,
                    'whitelist_from0' => '[email protected]'
        ));

Ive put all the variables in like it is written on:
http://www.directadmin.com/features.php?id=731

But u still get the error:
text:Error Saving settings details:You must include the blacklist

I think it is a simple fix, but then you have to know the variable else it can take forever figure it out.

Greets,
Kima
 
Thank you zEitEr for the tip.
It does work now :)


PHP:
        $sock->query('/CMD_API_SPAMASSASSIN',
                array(
                    'action' => 'save',
                    'domain' => 'example.com',
                    'where' => 'spamfolder',
                    'required_hits' => '5',
                    'high_score_block' => 'yes',
                    'high_score' => '10',
                    'rewrite_subject' => '1',
                    'report_safe' => '2',
                    'blacklist_from' => '[email protected]',
                    'whitelist_from' => '[email protected]',
                    'subject_tag' => '**SPAM**'
        ));
 
Back
Top