~ubuntu-branches/ubuntu/utopic/spamassassin/utopic-proposed

« back to all changes in this revision

Viewing changes to t/razor2.t

  • Committer: Bazaar Package Importer
  • Author(s): Noah Meyerhans
  • Date: 2010-01-26 22:53:12 UTC
  • mfrom: (1.1.13 upstream) (5.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100126225312-wkftb10idc1kz2aq
Tags: 3.3.0-1
* New upstream version.
* Switch to dpkg-source 3.0 (quilt) format

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
my $ident = $ENV{'HOME'}.'/.razor/identity';
24
24
if (! -r $ident) {
25
 
  $razor_not_available = "razor-register has not been run, or $ident is unreadable.";
 
25
  $razor_not_available = "razor-register / razor-admin -register has not been run, or $ident is unreadable.";
 
26
  warn "$razor_not_available\n";
26
27
}
27
28
 
28
 
%patterns = (
29
 
        q{ Listed in Razor2 }, 'spam',
30
 
            );
31
 
 
32
29
if (! $razor_not_available) {
33
30
  system ("razor-report < data/spam/001");
34
31
  if (($? >> 8) != 0) {
40
37
loadplugin Mail::SpamAssassin::Plugin::Razor2
41
38
");
42
39
 
 
40
 
 
41
#TESTING FOR SPAM
 
42
%patterns = (
 
43
        q{ Listed in Razor2 }, 'spam',
 
44
            );
 
45
 
43
46
sarun ("-t < data/spam/001", \&patterns_run_cb);
44
47
skip_all_patterns($razor_not_available);
45
48
 
 
49
#TESTING FOR HAM
46
50
%patterns = ();
47
51
%anti_patterns = (
48
52
        q{ Listed in Razor2 }, 'nonspam',