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/06/29 03:04:34 UTC

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

Author: felicity
Date: Wed Jun 28 18:04:34 2006
New Revision: 417912

URL: http://svn.apache.org/viewvc?rev=417912&view=rev
Log:
comment out test plugin for now

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=417912&r1=417911&r2=417912&view=diff
==============================================================================
--- spamassassin/rules/trunk/sandbox/felicity/70_other.cf (original)
+++ spamassassin/rules/trunk/sandbox/felicity/70_other.cf Wed Jun 28 18:04:34 2006
@@ -234,10 +234,9 @@
 header TVD_RATWARE_MSGID_02	Message-ID =~ /^[^<]*<[a-z]+\@/
 
 ########################################################################
-loadplugin Mail::SpamAssassin::Plugin::Sandbox::felicity sandbox-felicity.pm
-
-ifplugin Mail::SpamAssassin::Plugin::Sandbox::felicity
-# 1.909   2.3080   0.0000    1.000   1.00    0.01  T_MULTIPART_ALT_NON_TEXT
-body MULTIPART_ALT_NON_TEXT	eval:check_ma_non_text()
-endif
+#loadplugin Mail::SpamAssassin::Plugin::Sandbox::felicity sandbox-felicity.pm
+#
+#ifplugin Mail::SpamAssassin::Plugin::Sandbox::felicity
+#body RENDERED_DIFFERENTLY	eval:check_rendered_different()
+#endif
 ########################################################################

Modified: spamassassin/rules/trunk/sandbox/felicity/sandbox-felicity.pm
URL: http://svn.apache.org/viewvc/spamassassin/rules/trunk/sandbox/felicity/sandbox-felicity.pm?rev=417912&r1=417911&r2=417912&view=diff
==============================================================================
--- spamassassin/rules/trunk/sandbox/felicity/sandbox-felicity.pm (original)
+++ spamassassin/rules/trunk/sandbox/felicity/sandbox-felicity.pm Wed Jun 28 18:04:34 2006
@@ -36,23 +36,19 @@
   bless ($self, $class);
 
   # the important bit!
-  $self->register_eval_rule ("check_ma_non_text");
+#  $self->register_eval_rule ("check_rendered_different");
 
   return $self;
 }
 
-# came up on the users@ list, look for multipart/alternative parts which
-# include non-text parts -- skip multipart/related parts which occurs in ham
-sub check_ma_non_text {
-  my ($self, $pms) = @_;
-
-  foreach my $map ($pms->{msg}->find_parts(qr@^multipart/alternative$@i)) {
-    foreach my $p ($map->find_parts(qr/./, 1, 0)) {
-      return 1 if ($p->{'type'} !~ m@^text/@i && $p->{'type'} !~ m@^multipart/related$@i);
-    }
-  }
-  
-  return 0;
-}
+#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;
+#}
 
 1;