# to send a vacation message in reply to mail that is not spam or bulk mail, # simply create a file $HOME/vacation.txt (H:vacation.txt) ; # this file is sent as the /body/ of the vacation auto reply # To sent a message in reply to html-mail (Content-Type: text/html) # set HTML_AUTO_REPLY=1 # Html-mail is diverted to folder 'HTML'. It requires a file # $HOME/htmlmail.msg containing something like "I'm not a browser". # Note: This only drops HTML-only messages, so the multipart ones are O.K. HTML_AUTO_REPLY=0 #----------------------------------------------------------------------- if (/^X-Spam-Flag: YES/) { to "$DEFAULT/.SPAM" } if ( $HTML_AUTO_REPLY ) { if (/^Content-Type:.*text\/html/ && !/^Precedence: (bulk|list|junk)/) { cc "$DEFAULT/.HTML" xfilter "reformail -r -t" to "| ( cat - htmlmail.msg) | $SENDMAIL -t" } } # the next line sends a vacation message, if applicable ; # the contents of this file can be found here: # http://www.cs.uu.nl/technical/services/email/using.php#filter include "/etc/maildroprc.vacation" # processing of .mailfilter goes on after the previous include, so # you can put your own stuff below...