########################################################################### # # Procmail replacement for the vacation program # # Miguel A. Lerma - 9/5/2000 # # In order to activate the vacation feature, do the following: # # 1. Create a file called "vacation.msg" with your vacation message # on your home directory. # # 2. Replace below the two occurrences of "username" with your actual # login name. # # 3. Make sure that your home directory has a subdirectory called "Mail". # # 4. Copy this file to your home directory and rename it ".procmailrc". # # 5. Test it by sending a message to yourself. # # In order to deactivate the feature, remove or rename this file, # or comment out the vacation segment below. # ########################################################################### PATH=/bin:/usr/bin:/usr/local/bin MAILDIR=$HOME/Mail # you'd better make sure it exists SPOOLDIR=/var/spool/mail DEFAULT=$SPOOLDIR/$LOGNAME NSMAIL=$HOME/nsmail PINEMAIL=$HOME/mail SENDMAIL=/usr/lib/sendmail LINEBUF=16384 #------------- begin vacation segment ------------------- SHELL=/bin/sh :0 hc * !^FROM_DAEMON * !^X-Loop: username@math.northwestern.edu | (formail -rA"Precedence: junk" \ -A"X-Loop: username@math.northwestern.edu" ; \ cat $HOME/vacation.msg \ )| $SENDMAIL -oi -t #------------- end vacation segment ---------------------