#
# This is an sample of config file
# to be place in the directorie ~/.mailclean/ as config file
#
# Enable log file
log	1
# If do not want to use standard ~/.checkmail/log file
# flog	xx_log

# If do not want to use standard ~/.checkmail/stat file
# fstat	xx_stat

# Enable Stat
stat	1
#
# default maxline 100
#maxline	120
#
# Mail account
count	pop.free.fr	lesbernards		thepassword	Text for speech capability
count	pop.online.net	bernard@kadya.com	anotherpass	Bernard at Kadya.com

# Define variables
def	viagra=cialis|viagra|loves+tabs*|drugs*|pill
def	badsub=close|secur|dange|failu|error|encry|ares+yous+listed
def	badattach=.zip|pif|exe|com|scr$
# The word : software with letters in any order
# no ask to confirm deletion
del	sub=[software]{8}	ask=n
# Del mail if attachment is a .pif .exe, .com or .scr file and subject contain "account"
# no ask to confirm deletion
del	sub=$badsub	attach=$badattach	ask=n
# Del mail if there is the word cialis or viagra in the field subject
# no ask to confirm deletion
del	sub=$viagra	ask=n
# Del mail if there is the word cialis or viagra in the field text
# no ask to confirm deletion
del	text=$viagra	ask=n
#
# Del mail with dest = toto and subject match cialis. No ask
del	to=toto	sub=cialis	ask=n
# Del mail if there is the sentence "are you listed"  in the field text
# Note tha this rule use 's+' for one or more space.
# Asking to confirm deletion
del	text=ares+yous+listed
# Sender mail with 4 or more consonant or digit followed
# Asking to confirm deletion
del	from=[^[aeiouy]]{4,}	ask=y
# Sender mail with 3 or more voyel followed
# Asking to confirm deletion
del	from=[aeiouy]{3,}	ask=y
#
# Alias on users login
# Some provider redirect all messages to one account
# This alias tell that if the "Delivered-To" field do
# yield bm@mondan.org for the account nanard@mondan.org
# the mail is read. If not the mail is delete
alias	nanard@mondan.org	bm@mondan.org
#
# Exceptions
# Here is a list of email address that will not
# be deleted even is the delete rules are accomplished
except	from=a.marie@place.org
except	from=hs@online.org
except	from=pirhan@online.org
