[ingo] Enabling default filter rules

Rodrigo Abantes Antunes rodrigoantunes at pelotas.ifsul.edu.br
Tue Jul 17 15:08:01 UTC 2012


Hi I need to enable spam rule by default. Here is my $_prefs['rules']  
in prefs.php. How should it be in prefs.local.php to enable the spam  
rule?

$_prefs['rules'] = array(
     'value' =>  
'a:5:{i:0;a:2:{s:4:"name";s:9:"Whitelist";s:6:"action";i:' .  
Ingo_Storage::ACTION_WHITELIST .  
';}i:1;a:3:{s:4:"name";s:8:"Vacation";s:6:"action";i:' .  
Ingo_Storage::ACTION_VACATION .  
';s:7:"disable";b:1;}i:2;a:2:{s:4:"name";s:9:"Blacklist";s:6:"action";i:' .  
Ingo_Storage::ACTION_BLACKLIST . ';}i:3;a:3:{s:4:"name";s:11:"Spam  
Filter";s:6:"action";i:' . Ingo_Storage::ACTION_SPAM .  
';s:7:"disable";b:1;}i:4;a:2:{s:4:"name";s:7:"Forward";s:6:"action";i:' .  
Ingo_Storage::ACTION_FORWARD . ';}}',
     'locked' => false,
     'type' => 'implicit'
);


Should I set something like this? Ps.: I need to change only the spam rule.

$_prefs['rules']['value'] =  
'a:5:{i:0;a:2:{s:4:"name";s:9:"Whitelist";s:6:"action";i:' .  
Ingo_Storage::ACTION_WHITELIST .  
';}i:1;a:3:{s:4:"name";s:8:"Vacation";s:6:"action";i:' .  
Ingo_Storage::ACTION_VACATION .  
';s:7:"disable";b:1;}i:2;a:2:{s:4:"name";s:9:"Blacklist";s:6:"action";i:' .  
Ingo_Storage::ACTION_BLACKLIST . ';}i:3;a:3:{s:4:"name";s:11:"Spam  
Filter";s:6:"action";i:' . Ingo_Storage::ACTION_SPAM .  
';s:7:"enable";b:1;}i:4;a:2:{s:4:"name";s:7:"Forward";s:6:"action";i:'  
. Ingo_Storage::ACTION_FORWARD . ';

Thanks.

-- 
Rodrigo Abrantes Antunes
Técnico em Tecnologia da Informação
Coordenadoria de Manutenção e Redes
Instituto Federal Sul-rio-grandense - Campus Pelotas







More information about the ingo mailing list