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/10/09 17:11:11 UTC
[Bug 3889] New: Debug code is hard to use in third-party code
http://bugzilla.spamassassin.org/show_bug.cgi?id=3889
Summary: Debug code is hard to use in third-party code
Product: Spamassassin
Version: SVN Trunk (Latest Devel Version)
Platform: Other
OS/Version: other
Status: NEW
Severity: enhancement
Priority: P5
Component: Libraries
AssignedTo: dev@spamassassin.apache.org
ReportedBy: felicity@kluge.net
I have a small bit of code used to parse a message and then do things with it:
#!/usr/bin/perl
use Mail::SpamAssassin;
use Mail::SpamAssassin::Message;
$Mail::SpamAssassin::DEBUG->{enabled} = 1;
my $msg = new Mail::SpamAssassin::Message({parsenow => 1});
This used to work, but doesn't now due to the massive debug change. Either way, it makes the debug
output tied in to the M::SA code, even if M::SA isn't necessary (as in this case).
I'd like to see the debug code moved into its own module separate from M::SA.
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.