# /etc/courier/maildroprc # # The maildrop language syntax is brittle. Be very careful about cuddling # brackets and using whitespace. Run "man maildropfilter" for documentation. # # If this script does not make a significant delivery, then the message is # delivered to the location specified by the DEFAULT variable. # # The HOME variable is obtained by maildrop from the getpwent system call. The # DEFAULT and SHELL variables are language builtins that have special meaning. # # Set the default mailbox. DEFAULT="$HOME/Maildir" # Set the default shell. SHELL="/bin/ash" exception { # Scan for viruses. xfilter "fsavp" } if ( /^X-Virus-Flag: YES/ ) { `maildirmake -f Virus "$DEFAULT"` to "$DEFAULT/.Virus" } exception { # Scan for spam. xfilter "spamc" } if ( /^X-Spam-Flag: YES/ ) { `maildirmake -f Spam "$DEFAULT"` to "$DEFAULT/.Spam" } # eof