I may be wrong, but I think you need to do the regex substitution completely in
sed.
$MCHECK has '/'s in it so, when procmail expands it, sed freaks out. Too many
slashes.
s/$MCHECK// actually turns out to be
s/<img
src="3Dhttp://www.<agent>.com/images/blankpixel.gif/Key=3095.LZmR.V8Eyd">//
notice the problem with the slashes.
Doing something like this should work (not tested):
:0 fb
| sed 's/<img[^>]*src=[^>]*blankpixel[^>]*>//g'
On Tue, 13 Jun 2000, SoloCDM wrote:
Everything works except the sed recipe, and that's a return after
"<img" as it is in the body, so where is the problem in sed? 3D and
<agent> are dummies to omit the link.
# Recipes:
:0
* B ?? ^\/<img($.*)?src.*blankpixel.*">
{ MCHECK=$MATCH }
:0
{ LOG=$MCHECK }
:0 fb
| sed 's/$MCHECK//'
# Output from LOG:
<img
src="3Dhttp://www.<agent>.com/images/blankpixel.gif/Key=3095.LZmR.V8Eyd">
Note: Detailed Document(s) and Sample(s) are more than welcome.
When you reply to this message, please include
the mailing list and my address.
*********************************************************************
Signed,
SoloCDM
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail