You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by jh...@apache.org on 2009/09/02 20:19:53 UTC
svn commit: r810647 -
/spamassassin/trunk/rulesrc/sandbox/jhardin/20_tbird_image_spam.cf
Author: jhardin
Date: Wed Sep 2 18:19:53 2009
New Revision: 810647
URL: http://svn.apache.org/viewvc?rev=810647&view=rev
Log:
Fix breakage in tbird image rule
Modified:
spamassassin/trunk/rulesrc/sandbox/jhardin/20_tbird_image_spam.cf
Modified: spamassassin/trunk/rulesrc/sandbox/jhardin/20_tbird_image_spam.cf
URL: http://svn.apache.org/viewvc/spamassassin/trunk/rulesrc/sandbox/jhardin/20_tbird_image_spam.cf?rev=810647&r1=810646&r2=810647&view=diff
==============================================================================
--- spamassassin/trunk/rulesrc/sandbox/jhardin/20_tbird_image_spam.cf (original)
+++ spamassassin/trunk/rulesrc/sandbox/jhardin/20_tbird_image_spam.cf Wed Sep 2 18:19:53 2009
@@ -55,23 +55,15 @@
# Another constraint. No tiny images, and larger ones up to "less than
# 640x480", as observed in the wild.
-## BROKEN 9/1/2009
-# lint: config: failed to parse line, skipping, in "rules/70_sandbox.cf": mimeheader __JPEG_ATTACH Co$
-# rules: failed to run __ONE_IMG test, skipping:
-# (Can't locate object method "image_count" via package "Mail::SpamAssassin::PerMsgStatus" at (eval 363)$
-# )
-# rules: failed to run __IMG_LE_300K test, skipping:
-# (Can't locate object method "pixel_coverage" via package "Mail::SpamAssassin::PerMsgStatus" at (eval 3$
-# )
-#
-#body __ONE_IMG eval:image_count('all',1,1)
-#body __IMG_LE_300K eval:pixel_coverage('all',62500,300000)
-#
-#meta FORGED_TBIRD_IMG_SIZE __FORGED_TBIRD_IMG && __ONE_IMG && __IMG_LE_300K
-#
-#describe FORGED_TBIRD_IMG_SIZE Likely forged Thunderbird image spam
-#score FORGED_TBIRD_IMG_SIZE 0.8
-#
+ifplugin Mail::SpamAssassin::Plugin::ImageInfo
+ body __ONE_IMG eval:image_count('all',1,1)
+ body __IMG_LE_300K eval:pixel_coverage('all',62500,300000)
+
+ meta FORGED_TBIRD_IMG_SIZE __FORGED_TBIRD_IMG && __ONE_IMG && __IMG_LE_300K
+
+ describe FORGED_TBIRD_IMG_SIZE Likely forged Thunderbird image spam
+ score FORGED_TBIRD_IMG_SIZE 0.8
+endif
# Try some combinations not related to tbird forgery
meta IMG_DIRECT_TO_MX __DOS_DIRECT_TO_MX && __JPEG_ATTACH && __ONE_IMG && __IMG_LE_300K