Configure maildroprc
- Read more about Configure maildroprc
- Log in to post comments
# /etc/courier/maildroprc
# Our shell
SHELL="/bin/bash"
# The default path
DEFAULT = "$HOME/Maildir"
# Our log file
logfile "/var/log/maildrop"
# Our verbosity in the log file
VERBOSE="5"
# This get's added above each entry in the log file.
# It's just a visual aid.
log "------------------------"
# If the Spam-Flag is YES, sort to Junk folder
if ( /^X-Spam-Flag: YES/)
{
to $DEFAULT/.SPAM/
}
if ( /^Subject: new_order/)
{
`/data/scripts/processOrder.sh`
to $DEFAULT/.ORDER
}
# FILES
# processOrder.sh - http://www.panticz.de/node/155