New patch for rules_du_jour re HTML redirect pages

2007-06-18 Thread Lindsay Haisley
It seems as if the problem HTML redirect page is hiding somewhere when
rules_du_jour gets to its SA lint check, and it doesn't show up until
the rollback is done, so the patch I sent earlier isn't effective.  I'll
need to read the code more thoroughly and don't have time now, so here's
a quicker-n-dirtier patch which will zap the problem file after SA
--lint has failed so it'll run properly next time.

 cut here 
--- /root/rules_du_jour.orig2007-06-17 21:01:24.0 -0500
+++ /var/lib/spamassassin/rules_du_jour 2007-06-18 12:37:44.0 -0500
@@ -907,6 +907,8 @@
 [ ${SEND_THE_EMAIL} ]  echo -e ${MESSAGES} | sh -c ${MAILCMD} -s 
\RulesDuJour Run Summary on ${HOSTNAME}\ ${MAIL_ADDRESS};
 fi
 
+grep -il 'META HTTP-EQUIV' ${TMPDIR}/*|xargs -n1 rm -f 
+
 cd ${OLDDIR};
 
 exit;
 cut here 

rules_du_jour will still fail, but this will clean up the mess and next
time (hopefully) it'll run properly.  I'm plumb out of time to figure
this out today so I'll revisit it later and submit a better patch.

-- 
Lindsay Haisley   | In an open world,| PGP public key
FMP Computer Services |who needs Windows  |  available at
512-259-1190  |  or Gates| http://pubkeys.fmp.com
http://www.fmp.com|   |



Re: New patch for rules_du_jour re HTML redirect pages

2007-06-18 Thread Ed Kasky

At 10:52 AM Monday, 6/18/2007, Lindsay Haisley wrote -=

--lint has failed so it'll run properly next time.

 cut here 
--- /root/rules_du_jour.orig2007-06-17 21:01:24.0 -0500
+++ /var/lib/spamassassin/rules_du_jour 2007-06-18 12:37:44.0 -0500
@@ -907,6 +907,8 @@
 [ ${SEND_THE_EMAIL} ]  echo -e ${MESSAGES} | sh -c 
${MAILCMD} -s \RulesDuJour Run Summary on ${HOSTNAME}\ ${MAIL_ADDRESS};

 fi

+grep -il 'META HTTP-EQUIV' ${TMPDIR}/*|xargs -n1 rm -f
+
 cd ${OLDDIR};

 exit;
 cut here 

rules_du_jour will still fail, but this will clean up the mess and next
time (hopefully) it'll run properly.  I'm plumb out of time to figure
this out today so I'll revisit it later and submit a better patch.


This worked here on the second go-round!

Thanks!

Ed Kasky
~
Randomly Generated Quote (121 of 568):
It is only as we develop others that we permanently succeed.
   - Harvey S. Firestone