Whats the deal with this? It looks as if periodically RulesEmporium gets busy and sends a refresh file instead of a real .cf file, probably with the intent of asking the requesting client to try again. curl can't deal intelligently with a http-equiv refresh, so rather than trying again, it simply stores the refresh file as the result and spamassassin --lint fails. The errant file retrieved looks like:
<HTML><HEAD><META HTTP-EQUIV="Refresh" CONTENT="0.1"> <META HTTP-EQUIV="Pragma" CONTENT="no-cache"> <META HTTP-EQUIV="Expires" CONTENT="-1"> </HEAD></HTML> This happens with relative frequency on 99_FVGT_Tripwire.cf but apparently (see below) with other files too. When this happens (perhaps after it's happened twice), two files are produced in /etc/spamassassin/RulesDuJour; 99_FVGT_Tripwire.cf and 99_FVGT_Tripwire.cf.2. Apparently the rules_du_jour script can't recover from this and consistently fails on successive runs until the bad files are manually deleted. I haven't gone over the bash script in rules_du_jour in detail, but has anyone looked at this problem in detail? Is there a known fix? This shouldn't really be hard. A Quick-n-Nasty Unix-style solution would be to run grep -il 'META HTTP-EQUIV="Refresh"' ${TMPDIR}/* |xargs -n1 rm before running spamassassin --lint here's a suggested patch: ********************* --- tmp/rules_du_jour~ 2007-06-17 21:01:24.000000000 -0500 +++ /var/lib/spamassassin/rules_du_jour 2007-06-17 21:01:24.000000000 -0500 @@ -864,7 +864,7 @@ done - +grep -il 'META HTTP-EQUIV="Refresh"' ${TMPDIR}/* |xargs -n1 rm ********************* This won't pick up the problem file on the current run, but will clear the way for it to be retrieved next time. On Sun, 2007-06-17 at 19:43 -0500, Lindsay Haisley wrote: > On Sun, 2007-06-17 at 19:24 -0400, Michael B Allen wrote: > > Although rule_du_jour is still giving me HTML for SARE_OEM. > > Delete /etc/mail/spamassassin/RulesDuJure/70_sare_oem* > (or /etc/spamassassin/RulesDuJure/70_sare_oem*) and run rules_du_jour > again. -- 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 | |