##### wrapper.rc # # Resource file for procmail. # A wrapper for running/testing any procmail filter, without interfering with # the existing $HOME/.procmailrc setup. # Calls the procmail filter in $FILTER. # Run with: # procmail wrapper.rc < EMAIL-TO-FILTER # # Variables, in (set before calling): # none # Variables, returned: # none (Does not return.) # # The latest version is always available from: # http://volker.dnsalias.net/soft/procmail/ # # Copyright (C) by Volker Kuhlmann # Released under the terms of the GNU General Public License (GPL) Version 2. # See http://www.gnu.org/ for details. # # Volker Kuhlmann # 15, 18 Apr; 4 May; 18 Aug; 6 Nov 2002 # 27 Aug; 18 Nov 2003 # 17 May 2005 # VERBOSE=0 #VERBOSE=1 PROCDIR="$HOME/Mail/etc/procmail" FILTER="$PROCDIR/test.rc" SHELL=/bin/sh LINEBUF=8192 DEFAULT=/tmp/procmail-wrapper PATH=/bin:/usr/bin:/usr/local/bin:$HOME/bin:$HOME/bin/script NL=" " TAB=" " OR=2147483647^0 #:0 i #HOST=| hostname -s :0 i FQHOST=| hostname -f :0 * HOST ?? ^$ { HOST=unknown } :0 * FQHOST ?? ^$ { FQHOST=$HOST.unknown } :0 i MONTH=| date "+%Y%m" LOG="SHELL=$SHELL DEFAULT=$DEFAULT PROCDIR=$PROCDIR LINEBUF='$LINEBUF', HOST='$HOST', FQHOST='$FQHOST', MONTH='$MONTH' Logging to stdout/err, assign LOGFILE to change. Calling: $FILTER " INCLUDERC="$FILTER" ## With this HOST, processing stops with discarding the mail. ## To save to $DEFAULT, do so in $FILTER, or comment out the next line. HOST ##### EOF wrapper.rc