I discovered this the other day after seeing Jeff Covey's .sig on a linart
post. Send a blank email message to him with the phrase "send index" in the
subject; you will receive a list of files available from him, including some
cool music files!
I've always wanted an email bot like this, and his bot tells you how, by
sending a messages with "send procmailrc" in the subject. The results are
attached. You have to be running procmail on your email host.
I think this could be a groovy tool for sending out all kinds of things: a
poetry server, a music server, etc. Sure, you could put it on the Web, but
more machines can access the 1960s push media of email than can the Web.
Cool stuff.
m
---------- Forwarded message ----------
Date: Thu, 4 Sep 1997 20:18:56 -0400 (EDT)
From: jeff covey's groovy auto-responder <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: Re: send procmailrc
you sent me a letter with the exciting subject of:
send procmailrc
and all you got for your trouble was this. ;-)
jeff covey
[EMAIL PROTECTED]
#######################################################################
# this is jeff covey's procmailrc, based on:
# soren's ([EMAIL PROTECTED]) non-modular procmailrc
# thank you, soren! :-)
#
# i lasted played with this at:
# Time-stamp: <.procmailrc was last updated on Tue, 2 Sep 1997 12:11am>
# {{{ declarations of Environment
# Base directory for everything
MAILDIR=$HOME/.mailspool
# Procmail directory
PROCHOME=$HOME/.procmail
# Set the shell so that I am not nologin
SHELL=/bin/ksh
# logfile
LOGFILE=$PROCHOME/log
# This is where unmatched mail goes
DEFAULT=$HOME/.mailspool/jcovey1
# things spam bouncer wants but i don't use;
# i'll set them to default
ADMINFOLDER=$DEFAULT
[EMAIL PROTECTED]
BLOCKFOLDER=$DEFAULT
BYPASSWD=itisoknospam
LINEBUF=16384
NOLOOP=$ALTFROM
SBDIR=$PROCHOME/spambouncer
SPAMFOLDER=/dev/null
# A good path is important
PATH=/usr/bin:/usr/local/bin
# my address
[EMAIL PROTECTED]
# My X-Loop Header
MYXLOOP="X-Loop: $MYADDRESS"
# Toggle these for various effects
# On means that I am performing vacation stuff
# off or empty means that I am not
VACATION
# }}}
# {{{ maintenance
##############################################################################
#
# This does some maintenance of things so that I do not have to see them
#
# We have to define some variables
#DUPFILE=$PROCHOME/dups
CACHEFILE=$PROCHOME/.cache
CACHESIZE=8192
GARBAGE=/dev/null
# procmailex's way of deleting duplicates
:0 Wh: $CACHEFILE.lock
|formail -D $CACHESIZE $CACHEFILE
### soren's way of archiving duplicates. why would i want to do this?
### i could change $DUPFILE to $GARBAGE and get the same effect as the
### above, but is anything gained by doing it?
# First we grab the Message-Id:
#:0 cW: $CACHEFILE.lock
#|formail -D $CACHESIZE $CACHEFILE
#
# # This recipe should kill something if its Message-Id is in the
# # cachefile
# :0 a:
# $DUPFILE
# Kill those annoying things that kill spams
:0
* ^(Control:|Subject:) *cmsg cancel
$GARBAGE
# get rid of bounces of spams i complained about
:0
* ^FROM_DAEMON
{
:0 B
* ^X-UCE-Spam-Reported-by: [EMAIL PROTECTED]
$GARBAGE
}
# too many people don't keep the subscribe info, then bug a list
# with sub/unsub requests. $PROCHOME/unsubspam is a message alerting
# them to what they've done and telling them what to do instead.
LOGFILE=$PROCHOME/unsubspam-log
LOGABSTRACT=on
#:0hw
#* ^FROM_DAEMON
#* ^Subject: *(unsubscribe|subscribe)
#* $ !^$MYXLOOP
#| ( formail -r \
# -I"From: [EMAIL PROTECTED]" \
# -I"Reply-To: [EMAIL PROTECTED]" \
# -I"$MYXLOOP" ; \
# cat $PROCHOME/unsubspam \
#| $SENDMAIL -t -oi )
LOGFILE=$PROCHOME/log
LOGABSTRACT=on
##cubase list
# i don't use cubase under any of these platforms or with this hardware,
# so i don't need to read about it.
:0
* ^TOcubase-users
* ^Subject:.*[ ] \
(mac|atari|falcon|caf|cam|kurzweil|akai|yamaha|korg|roland|mixermap| \
MAC|ATARI|FALCON|CAF|CAM|KURZWEIL|AKAI|YAMAHA|KORG|ROLAND|MIXERMAP) \
([^a-z].*|$)
$GARBAGE
## tia list
# i don't use a mac.
:0
* ^TOtia-users
* ^Subject:.*[ ]mac([^a-z].*|$)
$GARBAGE
# }}}
# {{{ autoreplies
#############################################################################
#
# This checks for automagical things. I plan to accept the follow
# commands:
#
# get index a list of files i have available
# get geekcode my geekcode
# get procmailrc my procmailrc
# get webdesign webmaster self-promotion
# get net_by_mail how to reach the whole net by email
# get virus_info the truth about "good times" et al
:0 H
* $ ! ^$MYXLOOP
* ! ^FROM_DAEMON
* ^Subject: *(get|send|mail|gimme)\/( +(.?procmailrc|\
webdesign|\
index|\
net_by_mail|\
virus_info|\
geekcode.*))+
{
# it is a pretty safe bet that this recipe is supposed to
# be an automagical reply server.
# Therefore, this is the place to define the appropriate
# constants.
GETTING=$MATCH # What got me here?
MYFROM="From: jeff covey's groovy auto-responder <$MYADDRESS>"
SUBJECT=`formail -xSubject`
BOUNDARY=`formail -x'Message-Id:' | sed 's/[<>@ ]//g' | cut -c1-65`
# Now we futz with logs for a little while
# Save abstracts for autoreply stuff...
LOGABSTRACT=on
LOGFILE=
AUTOREPLYLOG=$PROCHOME/autoreply-log
:0 ch:
$AUTOREPLYLOG
# This is how I get real headers.
:0 fhW
| formail -rY -I"$MYFROM" \
-I"Mime-Version: 1.0"\
-I"Content-Type: multipart/mixed; boundary=\"$BOUNDARY\"" \
-I"Precedence: junk" \
-I"$MYXLOOP"
BOUNDARY=`echo '' ; echo '' ; echo --$BOUNDARY`
:0 fbW
| echo '' ; \
echo 'This is multi-part MIME.' ;\
echo $BOUNDARY ;\
echo "Content-Type: text/plain " ;\
echo "Content-Description: thanks for using jeff's groovy autoresponder!" ;\
echo '' ;\
echo 'you sent me a letter with the exciting subject of:';\
echo '' ; echo " $SUBJECT";\
echo '';\
echo 'and all you got for your trouble was this. ;-)';\
echo '' ;\
echo jeff covey; echo $MYADDRESS ; echo ''
# index file
:0 fWb
* GETTING ?? index
| cat - ; echo $BOUNDARY ; \
echo "Content-Type: text/plain " ;\
echo "Content-Description: index of files available from jeff covey" ;\
echo '' ; \
cat $PROCHOME/files/index ; echo ''
# My procmailrc
:0 fWb
* GETTING ?? procmailrc
| cat - ; echo $BOUNDARY ;\
echo "Content-Type: text/plain " ;\
echo "Content-Description: a .procmailrc file" ;\
echo '' ; \
cat $HOME/.procmailrc ; echo ''
# My geekcode
:0 fWb
* GETTING ?? geekcode
| cat - ; echo $BOUNDARY ;\
echo "Content-Type: text/plain " ;\
echo "Content-Description: jeff covey's geekcode" ;\
echo '' ; \
echo 'behold the thrilling geekcode of jeff covey!' ; \
echo '' ; \
cat $HOME/geekcode ; echo ''
# net by mail
:0 fWb
* GETTING ?? net_by_mail
| cat - ; echo $BOUNDARY ; \
echo "Content-Type: text/plain " ;\
echo "Content-Description: how to reach the whole net by email" ;\
echo '' ; \
cat $PROCHOME/files/net_by_mail ; echo ''
# virus info
:0 fWb
*GETTING ?? virus_info
| cat - ; echo $BOUNDARY ; \
echo "Content-Type: text/plain " ;\
echo "Content-Description: the truth about viruses" ;\
echo '' ; \
cat $PROCHOME/files/virus_info ; echo ''
# webmaster stuff
:0 fWb
* GETTING ?? webdesign
| cat - ; echo $BOUNDARY ; \
echo "Content-Type: text/plain " ;\
echo "Content-Description: information on webdesign services" ;\
echo '' ; \
cat $PROCHOME/files/webdesign_info ; echo ''
# add signature
:0 fWb
| cat - ; echo '' ; cat $HOME/.signature ; echo ''
:0
| ( cat - ; echo "$BOUNDARY--" ) | $SENDMAIL -t -oi
}
# }}}
#and let's let spam bouncer filter out the crap
#no, i don't want to know how i can !!!get rich quick!!!
#INCLUDERC=$SBDIR/splite.rc
# include some private stuff
INCLUDERC=$PROCHOME/private_procrc
# ... but don't save logs of anything else.
LOGABSTRACT=off
--
__ __
/ /\ jeff covey, mailto:[EMAIL PROTECTED] / /\
/ / \ http://pobox.com/~jeff.covey / / \
/ / /\ \ baltimore, md (410) 669-4926 / / /\ \
/ / /\ \ \ classical guitar; midi sequencing; / / /\ \ \
/ /_/__\ \ \ music notation; linux!; and more! / /_/__\ \ \
/________\ \ \ for a list of files available from me, /________\ \ \
\___________\/send me mail with "send index" as subject.\___________\/