You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@spamassassin.apache.org by bu...@bugzilla.spamassassin.org on 2004/04/06 20:57:58 UTC

[Bug 3246] New: Unable to test Mail::SpamAssassin::Dns when tracking other error.

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

           Summary: Unable to test Mail::SpamAssassin::Dns when tracking
                    other error.
           Product: Spamassassin
           Version: 2.63
          Platform: All
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P5
         Component: spamassassin
        AssignedTo: spamassassin-dev@incubator.apache.org
        ReportedBy: sirgeek-sa@mrsucko.org


When trying to track down a problem with activating Razor2 ( message told me it
was in in SpamAssassinDns.pm ).

I saw to check the syntax of code.  So I did this to the Dns.pm file.

Here is the command and its reults:

# perl -c /usr/local/lib/perl5/site_perl/5.8.2/Mail/SpamAssassin/Dns.pm
Bareword "Mail::SpamAssassin::Conf::TYPE_HEAD_TESTS" not allowed while "strict
subs" in use at
/usr/local/lib/perl5/site_perl/5.8.2/Mail/SpamAssassin/PerMsgStatus.pm line 1514.
BEGIN not safe after errors--compilation aborted at
/usr/local/lib/perl5/site_perl/5.8.2/Mail/SpamAssassin/PerMsgStatus.pm line 2566.
Compilation failed in require at
/usr/local/lib/perl5/site_perl/5.8.2/Mail/SpamAssassin.pm line 62.
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.8.2/Mail/SpamAssassin.pm line 62.
Compilation failed in require at
/usr/local/lib/perl5/site_perl/5.8.2/Mail/SpamAssassin/Util.pm line 28.
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.8.2/Mail/SpamAssassin/Util.pm line 28.
Compilation failed in require at
/usr/local/lib/perl5/site_perl/5.8.2/Mail/SpamAssassin/Conf.pm line 85.
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.8.2/Mail/SpamAssassin/Conf.pm line 85.
Compilation failed in require at
/usr/local/lib/perl5/site_perl/5.8.2/Mail/SpamAssassin/Dns.pm line 6.
BEGIN failed--compilation aborted at
/usr/local/lib/perl5/site_perl/5.8.2/Mail/SpamAssassin/Dns.pm line 6.

Everywhere that  you reference the config, you may need to change how you call it.
Currently you have:
Mail::SpamAssassin::Conf::TYPE_META_TESTS 

it should be:
$Mail::SpamAssassin::Conf::TYPE_META_TESTS



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.