-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Jeff!
On Fri, 22 Mar 2002, Jeff wrote:
Is it possible to get some sort of logging out of maildrop? I'd like to
keep stats on my rules (mostly the spam ones) and see which rules match
more often than others, etc.
You can very easy, use the keyword log, ie
# Adapted Rule
#Correct wrong sig-dashes, ie add a space for lines with only "--" in them:
#from: ^--$
# to: ^-- $
if (/^--$/:b)
{
xfilter "sed -e 's/^--$/-- /'"
log "Sig Dash Rule"
}
You could add the line below to the .mailfilter file in the users
home directory to get a log of that filter files activity:
logfile $HOME/.maildroplog
That usually only logs writing to the final destination not if certain
receipes have worked.
Sean
- --
Sean Rima http://www.tcob1.net
Linux User: 231986 Jabber: tcob...@jabber.org
THE VIEWS EXPRESSED HERE ARE NOT NECESSARILY THOSE OF MY WIFE.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjycW80ACgkQeR/L2ZZp3E/4RQCgzmNpImY9U31+OCCWrCyKrH3n
MM8Anjk/2oaggmT6vc/SQDxm6h7U+Vpk
=8uJN
-----END PGP SIGNATURE-----