# ----------------------------------------------------------------------
# sample murxrc file
# ----------------------------------------------------------------------
#
# This is a sample configuration for Murx. Copy this file to
# ${HOME}/.murxrc and edit it to fit your needs.
#
# Read the manpages murxrc(5) and murxex(5) for understanding how to
# configure murx to fit your needs.
#
#
# hints and tips
# --------------
#
# If you don't want to use the default location for the config file
# use the -M option followed by the rcfile location, e.g.
# $ murx -M path/to/rcfile
#
# You probably want to split up your configuration file into
# pieces. Read the manpage murxrc(5) and use the INCLUDE-keyword.
#
# Everything behind a # is recognized as a comment and will be ignored.
#
# ----------------------------------------------------------------------
# accounts
# ----------------------------------------------------------------------

# An account definition
ACCOUNT "example.com"
{
	USER         = "your.username1"
	PASSWORD     = "topsecret1"

	SERVER       = "pop.example.com"

	# optional settings
	PROTOCOL     = "pop3"		# default: "pop3"
	PORT         = 110		# default value depends on PROTOCOL setting

	TIMEOUT      = 60		# overwrites global timeout value
}

# Another account definition
ACCOUNT "example.net"
{
	USER         = "your.username2"
	PASSWORD     = "topsecret2"

	SERVER       = "imap.example.net"

	# optional settings
	PROTOCOL     = "pop3s"		# default: "pop3"
	PORT         = 995		# default value depends on PROTOCOL setting

	# TLS options
	USE_TLS      = "yes"		# default: "no"
	USE_STARTTLS = "no"		# default: "no"

	# a SHA1 (20 Byte) or MD5 (16 Byte) certificate fingerprint to check
	FINGERPRINT  = "12:34:56:78:9a:bc:de:f0:12:34:56:78:9a:bc:de:f0:12:34:56:78"
}

# Include some extra accounts
#INCLUDE = "${HOME}/.murx/accounts"

# ----------------------------------------------------------------------
# general settings
# ----------------------------------------------------------------------

# loglevel, verbosity
#
# For a detailed description of what can be logged, see the manpage
# murxrc(5)
#
# default: 3
#
#LOGLEVEL = 5 + 16

# File to which all action should be logged additionally to stdout.
# Please have a look at the path definition for the logfile. The
# use of the backticks is the same like in shell programming. That
# means the construct inside those backticks is replaced by the
# first line (!) of the output of the command(s).
#
# default: ""
#
# This line starts a new logfile every month:
#LOGFILE  = "${HOME}/logs/murx-`date +%Y-%m`.log"

# File to which headers should be logged to
#
# default: ""
#
#HEADERFILE = "${HOME}/logs/headers.txt"

# File for network and protocol debugging: If defined, log all network
# traffic of Murx into this file.
#
# default: ""
#
#NETLOG = "${HOME}/logs/netlog.log"

# How many lines of the mailbody should also be checked against
# the filter rules
#
# default: 0
#
#BODYLINES = 0

# If there are message duplicates (identified by the message-id),
# should murx delete them?
#
# default: "no"
#
#DELETE_DUPLICATES = "no"

# If a message score reaches this limit it gets deleted
#
# default: 100
#
#HIGHSCORE = 100

# This is the default behaviour for case sensivity in regular
# expressions if not given in rule.
#
# default: "yes" 
#
#IGNORE_CASE = "yes"

# Maximum size for messages except for those matching an ALLOW rule
#
# default: 0
#
#MAXSIZE_DENY = 500000

# Maximum size for messages matching an ALLOW rule (friends)
#
# default: 0
#
#MAXSIZE_ALLOW = 0

# Remove non alpha-numeric characters from the subject line for additionally
# matching against special words. If set to "yes" both subject lines will
# be checked against the regular expressions.
#
# example:
#
#    Subject: Very good V.I.A.G.R.A pills!
#
# will be transformed to
#
#    Subject: Very good VIAGRA pills
#
# default: "no"
#
#NORMALIZE_SUBJECT = "no"

# Check but do not take action given by rules (ALLOW, DENY, etc.).
# Tests can also be enabled rule locally overwriting this value.
#
# default: "no"
#
#TEST = "no"

# global server timeout in seconds
#
# default: 60
#
#TIMEOUT = 60

# ----------------------------------------------------------------------
# filter definitions
# ----------------------------------------------------------------------

# For readability, we do not support account dependant filters like
#DENY ACCOUNTS = "example.com" <> "^(To|Cc):.*my\.account@example\.com"

# Use a block instead:
#DENY ACCOUNTS = "example.com"
#{
#    <> "^(To|Cc):.*my\.account@example\.com"
#}

# ^-- the above filter denies all mails of account example.com
#     with another recipient but me

# Deny a complete domain
#DENY = "^From:.*@example\.org"

# Allow one of my friends from the spammer domain above
#ALLOW NOCASE = "^From:.*somefriend@example\.org"

# Allow a friend to send you mails but only if the mail size is
# less than 300 kB. If the mail is greater than 300 kB it will
# be neither approved nor deleted but can be denied via MAXSIZE_DENY.
#ALLOW
#{
#    NOCASE = "^From:.*somefriend@example.com"
#    SIZE < 300000
#}

# Message subject with "reply" but without references
#SCORE +75
#{
#    NOCASE  = "^Subject: (Re|AW):"
#    NOCASE <> "^(References|In-Reply-To):"
#}

# Some "special" words :-P
#
# This filter hits more spam if NORMALIZE_SUBJECT above is set to "yes"
#SCORE +100 NOCASE = "^Subject:.*(Viagra|Xanax|Sex)"

# I dont want advertising mails
#DENY NOCASE = "Subject: ADV:"

# A new filter which should be tested some time to see if it
# produces false positives. If not the leading TEST can be
# removed to enable this filter.
#TEST DENY
#{
#    = "X-Mailer: The Bat!"
#}

# A body filter, i.e. only body lines are checked.
#
# IMPORTANT:
#   If you want to use body line filters, you have to set the value for
#   BODYLINES to a value greater zero.
#
#   Look for BODYLINES above in this file!
#
#DENY
#{
#     BODY NOCASE = "v.agra"
#}
