You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spamassassin.apache.org by fe...@apache.org on 2006/07/31 17:22:39 UTC

svn commit: r427138 - in /spamassassin/rules/trunk/sandbox/felicity: 70_other.cf sandbox-felicity.pm

Author: felicity
Date: Mon Jul 31 08:22:38 2006
New Revision: 427138

URL: http://svn.apache.org/viewvc?rev=427138&view=rev
Log:
new test rule

Modified:
    spamassassin/rules/trunk/sandbox/felicity/70_other.cf
    spamassassin/rules/trunk/sandbox/felicity/sandbox-felicity.pm

Modified: spamassassin/rules/trunk/sandbox/felicity/70_other.cf
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/felicity/70_other.cf?rev=427138&r1=427137&r2=427138&view=diff
==============================================================================
--- spamassassin/rules/trunk/sandbox/felicity/70_other.cf (original)
+++ spamassassin/rules/trunk/sandbox/felicity/70_other.cf Mon Jul 31 08:22:38 2006
@@ -139,8 +139,10 @@
 
 #  5.679   6.6610   0.0203    0.997   0.92    1.00  TVD_FW_GRAPHIC_ID1
 #  0.339   0.3980   0.0000    1.000   0.50    1.00  TVD_FW_GRAPHIC_ID2
+#  0.908   1.0658   0.0000    1.000   1.00    0.01  TVD_FW_GRAPHIC_ID3
 mimeheader TVD_FW_GRAPHIC_ID1	Content-Id =~ /<[0-9a-f]{12}(?:\$[0-9a-f]{8}){2}\@/
 mimeheader TVD_FW_GRAPHIC_ID2	Content-Id =~ /<(?:[0-9A-F]{8}\.){3}[0-9A-F]{8}/
+mimeheader TVD_FW_GRAPHIC_ID3	Content-Id =~ /<image\d+\.gif\@/
 
 mimeheader TVD_FW_GRAPHIC_NAME_LONG	Content-Type =~ /\bname="[a-z]{8,}\.gif/
 mimeheader TVD_FW_GRAPHIC_NAME_MID	Content-Type =~ /\bname="[a-z]{6,7}\.gif/

Modified: spamassassin/rules/trunk/sandbox/felicity/sandbox-felicity.pm
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/felicity/sandbox-felicity.pm?rev=427138&r1=427137&r2=427138&view=diff
==============================================================================
--- spamassassin/rules/trunk/sandbox/felicity/sandbox-felicity.pm (original)
+++ spamassassin/rules/trunk/sandbox/felicity/sandbox-felicity.pm Mon Jul 31 08:22:38 2006
@@ -36,19 +36,22 @@
   bless ($self, $class);
 
   # the important bit!
-#  $self->register_eval_rule ("check_rendered_different");
+  $self->register_eval_rule ("check_base64_length");
 
   return $self;
 }
 
-#sub check_rendered_different {
-#  my $plugin = shift;	# remove for EvalTests
-#  my $self = shift;	# PMS
-#
-#  foreach my $p ($self->{msg}->find_parts(qr@^text/plain$@i)) {
-#  }
-#  
-#  return 0;
-#}
+sub check_base64_length {
+  my $self = shift;
+  my $pms = shift;
+
+  foreach my $p ($pms->{msg}->find_parts(qr@.@)) {
+    my $enc = 
+    next unless ($p->{'type'} 
+  raw
+  }
+  
+  return 0;
+}
 
 1;