News About Features Documentation FAQ ChangeLog Mailinglist Download GIT Screenshots RRDtool MRTG WebQ Logwatch Reporter Latest stable: 2.0.2-1 Latest devel: 2.0.3-0.beta5 |
dspam() This realscanner uses dspam library. For detailed description see DSPAM documentation. Usage: dspam(home='/var/dspam', user=None, group=None, classify=None, source=None, train=None, flags=pydspam.DSF_SIGNATURE) Where: home is dspam home dir ('/var/dspam') user is dspam user (user running sagator's process) group is dspam group (group running sagator's process) classify is how to classify this message Available options: DSR_ISSPAM, DSR_ISINNOCENT Default: Don't classify. source is message source: Available options: DSS_ERROR, DSS_CORPUS, DSS_INOCULATION Default: No source defined. train is training mode Available options: DST_TEFT, DST_TOE, DST_TUM, DST_NOTRAIN Default: DST_TEFT flags are dspam flags Available options: DSF_SIGNATURE, DSF_BIAS, DSF_NOISE, DSF_WHITELIST, DSF_MERGED Default: DSF_SIGNATURE Examples: basic usage: dspam() training emails badly assigned as spams: drop('',dspam(classify=DSR_ISSPAM,source=DSS_ERROR,train=DST_TOE)) training emails badly assinged as inoocent: drop('',dspam(classify=DSR_ISINNOCENT,source=DSS_ERROR,train=DST_TOE)) |