#!/bin/sh # # request_re-send # # AUTHOR: # Dan Harkless # # COPYRIGHT: # This file is Copyright (C) 1997 by Dan Harkless, and is released under the # GNU General Public License . # # USAGE: # % request_re-send # # EXAMPLE: # % request_re-send UnknownPerson@somewhere.com dan@wave.eng.uci.edu # # DESCRIPTION: # Mail to your SPAM-tainted email address should be piped to this script if # it's not from an authorized correspondent. # # DATE MODIFICATION # ========== ================================================================== # 1997-11-04 Put MH/nmh library path in MH_LIB variable for easy customization. # 1997-05-29 Original. set -x # turn on trace mode so we can put the output of this script in a log # You may need to change this on your system! MH_LIB=/usr/local/lib/nmh # We use relative paths below, so make sure we're in our home directory. # We might not be if we're being run interactively for debugging purposes. cd REJ=mail/reject.$$ trap "rm -f $REJ" 0 1 2 3 15 # cleanup on exit # Need to explicitly echo this part as opposed to making it part of the cat # below since slocal puts a carriage return at the end of the email address. echo To: $1 > $REJ cat << EOF >> $REJ Subject: You need to re-send your message! -------- ----------------------------------------------------------------------- Back in the good ol' days of the Internet I posted to Usenet using this address. Unfortunately this has resulted in massive SPAM contamination and I have been forced to institute a "caller-ID"-like policy. If you are reading this, that means I don't have you in the database of people who are allowed to send email to $2. Luckily, adding yourself to the database is easy -- just forward this message back to me, making sure the Subject contains the keyword "re-send". This magic password will cause your mail to be delivered to me and I will see your original message, which appears below. It will also cause your email address to be added to my database so that in the future your emails will go directly to me with no hassle. NOTE: Unless you forward this message back to me, I will never see your mail below! If you are an MH user, do not use 'dist', as it will leave $2 in the From: field and your address will not be added to the database. If your mail program does not have a forward feature, reply will work just as well. ----------------------------------------------------------------------- YOUR ORIGINAL MESSAGE: EOF cat >> $REJ $MH_LIB/post $REJ