config_list_spamassassin_crans 697 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
#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