procmail
[Top] [All Lists]

truncating not working....

1996-05-26 23:17:19
Hey guys, the recipe for truncating my $NAME variable isn't working...
I've put it into my auto subscribing recipe, and it seems to be dropping
through and executing the :0E recipe... so I dunno... here is the entire
thing, maybe I placed it in teh wrong spot....

:0
* ^Subject: coc subscribe*
* !^X-Loop: ginof(_at_)io(_dot_)org
* !^Subject:.*Re:
* !^FROM_DAEMON
{
   :0hwc
   * ^Subject: coc subscribe \/.*$
   FROM_ADDRESS=| formail -rxTo:
   NAME="$MATCH"

   :0
   * NAME ?? .
   * NAME ?? ^^\/.{1,25}
   { NAME = $MATCH }

   :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 to the mailing list
   "
   LOGFILE=$OLDLOGFILE

   :0ab
   ! listproc(_at_)lists(_dot_)colorado(_dot_)edu

}

Also... I tried deleteing the * NAME ?? . line, and then it always left
$NAME blank.... I'm lost... thanks for any help....


<Prev in Thread] Current Thread [Next in Thread>