#Pour lancer la configuration:
#
# sudo /usr/lib/mailman/bin/config_list -i config_list_spamassassin_crans $NOM_DE_LA_LISTE
#
import sys
sys.path.append('/usr/scripts/mailman/')
from Mailman import mm_cfg

mlist.SPAMASSASSIN_DISCARD_SCORE = getattr(mm_cfg, 'SPAMASSASSIN_DISCARD_SCORE', 10)
mlist.SPAMASSASSIN_HOLD_SCORE = getattr(mm_cfg, 'SPAMASSASSIN_HOLD_SCORE', 5)
mlist.SPAMASSASSIN_MEMBER_BONUS = getattr(mm_cfg, 'SPAMASSASSIN_MEMBER_BONUS', 2)

if 'pipeline' not in dir(mlist):
	mlist.pipeline = mm_cfg.GLOBAL_PIPELINE
else:
	print mlist.pipeline
if 'SpamAssassin_crans' not in mlist.pipeline:
	mlist.pipeline[mlist.pipeline.index('SpamAssassin')] = 'SpamAssassin_crans'

del sys
del mm_cfg