# Sample Courier Maildrop file to demonstrate the DELTAG modifications logfile "mailfilter-log.txt" log "========" if ( /^Subject: Test1/ ) { log "-------------------------------------------- Test1 found " to "Maildir/.blah" } if ( /^Subject: Test2/ ) { log "-------------------------------------------- Test2 found " cc "Maildir/.blah" to Maildir } if ( /^Subject: Test3/ ) { log "-------------------------------------------- Test3 found " cc "Maildir/.blah" DELTAG=1 to Maildir } if ( /^Subject: Test4/ ) { log "-------------------------------------------- Test4 found " xfilter "subjadd [ABC]" to Maildir } LMB="Maildir" xfilter "/usr/bin/spamassassin -x" # Watch out for header line added by # Spamassassin. # Don't allow any blank lines after the # if statement! if ( /^X-Spam-Flag: YES/ ) { log "----------------------------------- Spam general. " cc "Maildir/.-SPAM" # Make this "cc" for copy or "to" to not # send it to Inbox. DELTAG=1 xfilter "subjadd ~~~[SPAM]" to "$LMB" } # The Anomy Sanitizer stuff goes in here # when we are ready to test it too. log "- - - - - - - - - - - - - - - - - - - - - - No match" # Deliver to the Inbox. to "Maildir"