# # The following will force all messages from Procmail to be logged in # ~/syslog/procmail # LOGFILE=$HOME/syslog/procmail # # Turn verbose logging and log abstract off, unless you're the # wordy type. # VERBOSE=off LOGABSTRACT=off # # From the procmailrc man page: # # By default, procmail returns an exitcode of zero (success) if it # successfully delivered the message or if the HOST variable was # misset and there were no more rcfiles on the command line; # otherwise it returns failure. Before doing so, procmail examines # the value of this variable. If it is set to a positive numeric # value, procmail will instead use that value as its exitcode. If # this variable is set but empty and TRAP is set, procmail will set # the exitcode to whatever the TRAP program returns. If this # variable is not set, procmail will set it shortly before calling # up the TRAP program. # # So, by setting EXITCODE to nothing, we can have procmail return # whatever exit code our filter.pl script determines is necessary. # EXITCODE= # # Point to our program to handle all of the filtering. As mentioned, # by running our program as a TRAP program (see the procmailrc docs # for more information about this). Procmail will assign the exit # code of our script to the MTA (sendmail, postfix, exim, etc.) that # called procmail. # TRAP=$HOME/bin/filter.pl # # The following is for safety purposes. All email is copied to this # file, so if something gets lost, you can retrieve it from here. # Once you're comfortable with your filter.pl, you can remove the # following two lines. :0: $HOME/syslog/mail