Commit 8d7064a0 authored by bobot's avatar bobot

Import initiale de la configuration des mailinglist pour spamassassin.

darcs-hash:20061210040428-9e428-afb1be78d254ec5a7c1f5677a6f4c0973ee6c5c0.gz
parent 1b449c89
#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
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment