http://bugzilla.spamassassin.org/show_bug.cgi?id=3050





------- Additional Comments From [EMAIL PROTECTED]  2004-02-15 20:31 -------
damn it.  I figured the other issue out too...

MsgParser is called in spamassassin right before the M::SA object is created.   
This works fine, except 
that the M::SA object is what sets the debug level -- since it's not set when 
the parser is called, no 
debug output occurs.

Doh.

So...  Can anyone see any reason not to flip these two around?

  if (!$opt{'lint'} && !$doing_address_only_whitelisting) {
    $mail = Mail::SpamAssassin::MsgParser->parse ();
  }

# create the tester factory
  my $spamtest = new Mail::SpamAssassin ({
    rules_filename      => $opt{'configpath'},
    site_rules_filename => $opt{'siteconfigpath'},
    userprefs_filename  => $opt{'prefspath'},
    local_tests_only    => $opt{'local'},
    debug             => defined($opt{'debug-level'}),
    dont_copy_prefs   => ($opt{'create-prefs'} ? 0 : 1),
    PREFIX            => $PREFIX,
    DEF_RULES_DIR     => $DEF_RULES_DIR,
    LOCAL_RULES_DIR   => $LOCAL_RULES_DIR,
  });



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.

Reply via email to