I'd like to programatically call the methods SA uses to check for 8bit charsets and the like but I personally do not care to make use of the rules engine at all. Do I need an instance of PerMsgStatus fully setup before I can call eval: methods programatically?

For instance I already have

my $spamtest = new Mail::SpamAssassin({
    PREFIX => $PREFIX,
    DEF_RULES_DIR => $DEF_RULES_DIR,
    LOCAL_RULES_DIR => $LOCAL_RULES_DIR,
    LOCAL_STATE_DIR => $LOCAL_STATE_DIR,
    userprefs_filename => "$PREFIX/.spamassassin/user_prefs",
    userstate_dir => "$PREFIX/.spamassassin",
    debug => $debugLevel
   });

but I do not want to have to call check()

I'm looking to call things like check_for_faraway_charset, check_for_faraway_charset_in_headers

Reply via email to