~ubuntu-branches/ubuntu/lucid/spamassassin/lucid-proposed

« back to all changes in this revision

Viewing changes to lib/Mail/SpamAssassin/Plugin/MIMEHeader.pm

  • Committer: Bazaar Package Importer
  • Author(s): Laurent Bigonville, Ubuntu Merge-o-Matic, Laurent Bigonville
  • Date: 2006-07-31 15:40:08 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20060731154008-j37ulp5pgfkddegw
Tags: 3.1.3-1ubuntu1
[ Ubuntu Merge-o-Matic ]
* Merge from debian unstable.

[ Laurent Bigonville ]
* fix debian/control.
* drop debian/patches/40_fix_dns_issue.

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
      my $evalfn = "_mimeheader_eval_$rulename";
122
122
      $evalfn =~ s/[^a-zA-Z0-9_]/_/gs;
123
123
 
 
124
      # don't redefine the subroutine if it already exists!
 
125
      # this causes lots of annoying warnings and such during things like
 
126
      # "make test".
 
127
      return if (defined &{'Mail::SpamAssassin::Plugin::MIMEHeader::'.$evalfn});
 
128
 
124
129
      $self->{parser}->add_test($rulename, $evalfn."()",
125
130
                $Mail::SpamAssassin::Conf::TYPE_BODY_EVALS);
126
131
      my $evalcode = '