# procmailrc file for use with Berylium autoresponder
# note that some values will need to be changed to work with your setup!
#
# $Id $


#logging - in case you want to troubleshoot (uncomment by deleting #)
LOGFILE=$HOME/procmail.log
VERBOSE=yes

#shell - otherwise, nothing will happen when we call formail
SHELL=/usr/local/bin/bash

#set up some local vars
FROM=`formail -rt -xTo:`
TO=`formail -xTo:`

#begin Berylium Autoresponder section
:0 h
* !^FROM_DAEMON
* !^FROM_MAILER
* !^X-Loop: autoresponder_reply
#
#
# Change the address below to whatever address you forward autoresponder requests to...
#
* ^Delivered-To: chxo@berylium.psydeshow.org
#
#
# Change the URL below to the address of your autoresponder
#
| wget -q -O - "http://chxo.com/be2/xobot/index.html?method=autorespond&to=$TO&from=$FROM"
#end xobot section

#begin error handling section - NOTE: this section always goes at the end
	#:0 h
	#* !^FROM_DAEMON
	#* !^FROM_MAILER
	#* !^X-Loop: autoresponder_reply
	#* ^Subject:.*
	#| (formail -rt -A"Precedence: junk (autoreply)"\
	#       -A"X-Loop: autoresponder_reply" ; \
	#       cat $HOME/xobot/error.txt) | $SENDMAIL -t
#end error handling section

#begin catch_bucket
:0
/dev/null
#end catch_bucket
