Ok, here's the entire recipe, in fine working order thank you to everyone
who helped me out, you guys rule.... one last thing I'd like this recipe
to do is trim any and all white space from the beginning and end of the
$NAME variable, how do I go about that??
IF htere are any more cosmetic suggestions you think I should add (or
delete), lemme know.. thanks a lot.. here it is...
rc.sub
~~~~~~
VERBOSE=on
:0
* ^Subject: [cC][oO][cC] [Ss][uU][bB][sS][cC][rR][iI][bB][eE]*
* !^X-Loop: ginof(_at_)io(_dot_)org
* !^Subject:.*Re:
* !^FROM_DAEMON
{
FROM_ADDRESS=`formail -rxTo: | cut -c2-`
:0hw
* ^Subject: coc subscribe \/[^ ]*
{
NAME=`echo "$MATCH" | cut -c1-25`
}
:0
* NAME ?? .
{ NAME = "$NAME" }
:0E
{ NAME=$FROM_ADDRESS }
:0fib
| echo "ADD coc-ezine cronosmantas $FROM_ADDRESS $NAME"
OLDLOGFILE=$LOGFILE
LOGFILE=$HOME/.procmail/subscribe.log
LOG="$NAME <$FROM_ADDRESS> was added on $DATE
"
LOGFILE=$OLDLOGFILE
:0ab
! listproc(_at_)lists(_dot_)colorado(_dot_)edu
}